mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-22 12:52:11 +08:00
refact(scorphish): use a flag to decide where to place git info
This commit is contained in:
parent
95ed7da00b
commit
239f8dd089
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user