Create right fish prompt with time and watch emoji. Add spaces to match tmux power.
This commit is contained in:
parent
dd404a2140
commit
9483a86f07
|
|
@ -0,0 +1,19 @@
|
|||
# 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
|
||||
|
||||
Loading…
Reference in New Issue