From 8229b17f0d2402efcb5bd2511761c7af8a6cf29c Mon Sep 17 00:00:00 2001 From: Terje Larsen Date: Wed, 14 Nov 2012 23:14:46 +0100 Subject: [PATCH] Use double-dollar vars for dynamic variables --- share/functions/__terlar_git_prompt.fish | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/share/functions/__terlar_git_prompt.fish b/share/functions/__terlar_git_prompt.fish index df900af7a..afdd7b3eb 100644 --- a/share/functions/__terlar_git_prompt.fish +++ b/share/functions/__terlar_git_prompt.fish @@ -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