20 lines
420 B
Fish
20 lines
420 B
Fish
# fish theme: gentoo
|
|
|
|
function fish_right_prompt
|
|
set -l last_status $status
|
|
set -l cyan (set_color -o cyan)
|
|
set -l red (set_color -o red)
|
|
set -l normal (set_color normal)
|
|
|
|
# print last exit code if nonzero:
|
|
if test $last_status -ne 0
|
|
set_color red
|
|
printf '%d' $last_status
|
|
set_color normal
|
|
end
|
|
|
|
# display the timestamp on the utmost right.
|
|
echo -n -s $normal '⌚ ' (date +%H:%M:%S) ' '
|
|
end
|
|
|