mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-12-02 22:13:47 +08:00
12 lines
232 B
Fish
12 lines
232 B
Fish
|
function fish_right_prompt
|
||
|
set -l exit_code $status
|
||
|
if test $exit_code -ne 0
|
||
|
set_color red
|
||
|
else
|
||
|
set_color green
|
||
|
end
|
||
|
printf '%d' $exit_code
|
||
|
set_color yellow
|
||
|
printf ' < %s' (date +%H:%M:%S)
|
||
|
set_color normal
|
||
|
end
|