prompt: add return status indicator
parent
980b80fc9f
commit
f86e7efebd
|
@ -1,8 +1,14 @@
|
|||
# vim: syntax=fish:
|
||||
|
||||
function fish_prompt
|
||||
set _stat $status
|
||||
echo -n (set_color 70a9ff)(date +%H:%M:%S)
|
||||
echo -n (set_color normal)@
|
||||
echo -n (set_color normal)(
|
||||
if test $_stat -eq 0
|
||||
echo '@'
|
||||
else
|
||||
echo '!'
|
||||
end)
|
||||
echo -n (set_color c792ea)$hostname
|
||||
echo (set_color normal)"% "
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue