scripts/scripts/fish/prompt

27 lines
528 B
Plaintext
Raw Normal View History

# vim: syntax=fish:
2019-06-24 06:23:58 -07:00
function fish_prompt
2019-07-29 03:36:13 -07:00
echo -n (set_color 70a9ff)(date +%H:%M:%S)
echo -n (set_color normal)@
echo -n (set_color c792ea)$hostname
echo (set_color normal)"% "
2019-06-24 06:23:58 -07:00
end
function fish_right_prompt
2019-07-29 03:36:13 -07:00
echo -n (set_color c3e88d)(pwd)
echo (set_color normal)
2019-06-24 06:23:58 -07:00
end
function fish_greeting
if test -f /usr/share/dict/words && test (what shuf)
set_color c50ed2
2019-06-25 16:13:32 -07:00
echo "Word of the moment: "(shuf -n1 /usr/share/dict/words) |
awk -f $_agw_dir_scripts/text/mid.awk col=$COLUMNS
2019-06-25 16:13:32 -07:00
set_color normal
end
2019-06-24 06:23:58 -07:00
end
## EOF