33 lines
604 B
Plaintext
33 lines
604 B
Plaintext
|
#!/usr/bin/env fish
|
||
|
|
||
|
function fish_prompt
|
||
|
set _stat $status
|
||
|
echo -n (set_color 70a9ff)(date +%H:%M:%S)
|
||
|
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
|
||
|
|
||
|
function fish_right_prompt
|
||
|
echo -n (set_color c3e88d)(pwd)
|
||
|
echo (set_color normal)
|
||
|
end
|
||
|
|
||
|
function fish_greeting
|
||
|
if test -f /usr/share/dict/words && test (which shuf)
|
||
|
set_color c50ed2
|
||
|
|
||
|
echo "Word of the moment: "(shuf -n1 /usr/share/dict/words) |
|
||
|
awk -f $_agw_dir_rc/text/mid.awk col=$COLUMNS
|
||
|
|
||
|
set_color normal
|
||
|
end
|
||
|
end
|
||
|
|
||
|
## EOF
|