mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 23:11:14 -03:00
Fix status code coloring for nim prompt
This commit is contained in:
@@ -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 '┬─'
|
||||
|
||||
Reference in New Issue
Block a user