mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Use double-dollar vars for dynamic variables
This commit is contained in:
parent
4a5d02aab4
commit
8229b17f0d
1 changed files with 5 additions and 2 deletions
|
@ -60,8 +60,11 @@ function __terlar_git_prompt --description 'Write out the git prompt'
|
||||||
|
|
||||||
for i in $fish_prompt_git_status_order
|
for i in $fish_prompt_git_status_order
|
||||||
if contains $i in $gs
|
if contains $i in $gs
|
||||||
eval 'set_color $fish_color_git_'$i
|
set -l color_name fish_color_git_$i
|
||||||
eval 'echo -n $fish_prompt_git_status_'$i
|
set -l status_name fish_prompt_git_status_$i
|
||||||
|
|
||||||
|
set_color $$color_name
|
||||||
|
echo -n $$status_name
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue