Use double-dollar vars for dynamic variables

This commit is contained in:
Terje Larsen 2012-11-14 23:14:46 +01:00 committed by ridiculousfish
parent 4a5d02aab4
commit 8229b17f0d

View file

@ -60,8 +60,11 @@ function __terlar_git_prompt --description 'Write out the git prompt'
for i in $fish_prompt_git_status_order
if contains $i in $gs
eval 'set_color $fish_color_git_'$i
eval 'echo -n $fish_prompt_git_status_'$i
set -l color_name fish_color_git_$i
set -l status_name fish_prompt_git_status_$i
set_color $$color_name
echo -n $$status_name
end
end