Skip to content

Commit

Permalink
Rename color variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bobsoppe authored and edouard-lopez committed Sep 26, 2023
1 parent 87c8351 commit ee9dd1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conf.d/pure.fish
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ _pure_set_default pure_symbol_ssh_prefix "" # suggestion: 'ssh:/' or '🔗🔐
# Display Kubernetes/k8s context and namespace
_pure_set_default pure_enable_k8s false
_pure_set_default pure_symbol_k8s_prefix "" # ☸️
_pure_set_default pure_color_k8s_symbol pure_color_dark
_pure_set_default pure_color_k8s_prefix pure_color_dark
_pure_set_default pure_color_k8s_context pure_color_success
_pure_set_default pure_color_k8s_namespace pure_color_primary
2 changes: 1 addition & 1 deletion functions/_pure_prompt_k8s.fish
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function _pure_prompt_k8s
and _pure_check_availability pure_enable_k8s kubectl
and test -n (_pure_k8s_context) # todo: use $(cmd) syntax when Fish 3.3.1 is dropped

set --local symbol (_pure_set_color $pure_color_k8s_symbol)$pure_symbol_k8s_prefix
set --local symbol (_pure_set_color $pure_color_k8s_prefix)$pure_symbol_k8s_prefix
set --local context (_pure_set_color $pure_color_k8s_context)(_pure_k8s_context)
set --local namespace (_pure_set_color $pure_color_k8s_namespace)(_pure_k8s_namespace)

Expand Down
6 changes: 3 additions & 3 deletions tests/_pure.test.fish
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,10 @@ before_all
echo $pure_symbol_k8s_prefix
) = ""

@test "configure: pure_color_k8s_symbol" (
set --erase pure_color_k8s_symbol
@test "configure: pure_color_k8s_prefix" (
set --erase pure_color_k8s_prefix
source (status dirname)/../conf.d/pure.fish
echo $pure_color_k8s_symbol
echo $pure_color_k8s_prefix
) = pure_color_dark

@test "configure: pure_color_k8s_context" (
Expand Down

0 comments on commit ee9dd1d

Please sign in to comment.