mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-25 02:58:34 +08:00
10 lines
164 B
Fish
10 lines
164 B
Fish
|
function fish_right_prompt
|
||
|
set -l last_status $status
|
||
|
|
||
|
if test $last_status -ne 0
|
||
|
set_color red
|
||
|
printf '%d' $last_status
|
||
|
set_color normal
|
||
|
end
|
||
|
end
|