random scripts I use
您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
 
 
 
 
 
 

32 行
638 B

#!/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) && test (which ruby)
set_color c50ed2
echo -n "Word of the moment: "(shuf -n1 /usr/share/dict/words) |
ruby -e 'puts $stdin.read.center ARGV[0].to_i' $COLUMNS
set_color normal
end
end
## EOF