refact(scorphish): use a flag to decide where to place git info

This commit is contained in:
Pablo Santiago Blum de Aguiar 2015-05-09 21:33:44 -03:00
parent 95ed7da00b
commit 239f8dd089

View File

@ -71,7 +71,11 @@ function fish_prompt
_prompt_virtualfish _prompt_virtualfish
set_color -o 666 set_color -o 666
echo ']' if set -q SCORPHISH_GIT_INFO_ON_FIRST_LINE
printf "]"
else
printf "]\n"
end
set -l gray (set_color 666) set -l gray (set_color 666)
set -l cyan (set_color cyan) set -l cyan (set_color cyan)
@ -97,7 +101,11 @@ function fish_prompt
end end
set_color 060 set_color 060
printf ' »' if set -q SCORPHISH_GIT_INFO_ON_FIRST_LINE
printf "\n»"
else
printf " »"
end
set_color 090 set_color 090
printf '»' printf '»'
set_color 0c0 set_color 0c0