Fix status code coloring for nim prompt

This commit is contained in:
tomKPZ
2019-07-06 21:28:48 -07:00
committed by Fabian Homborg
parent 0e4fe53718
commit 42f38bb806

View File

@@ -24,6 +24,9 @@ function fish_prompt
# │ 1 15048 0% arrêtée sleep 100000
# ╰─>$ echo there
set -l retc red
test $status = 0; and set retc green
set -q __fish_git_prompt_showupstream
or set -g __fish_git_prompt_showupstream auto
@@ -45,8 +48,6 @@ function fish_prompt
set_color -o green
echo -n ']'
end
and set retc green
or set retc red
set_color $retc
echo -n '┬─'