You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
550 B
Fish
20 lines
550 B
Fish
5 years ago
|
function fish_greeting
|
||
|
if test "$TERM_PROGRAM" = vscode
|
||
|
return
|
||
|
end
|
||
|
|
||
|
set greetings "Hello there" (echo -ne "Aye aye, "; set_color -o; echo -ne "captain"; set_color normal) \
|
||
|
"Welcome back, Commander Shepard" "Waiting for orders!"
|
||
|
|
||
|
set greet $greetings[(random 1 (count $greetings))]
|
||
|
|
||
|
echo -ne "\n\t"$greet"\n\n"
|
||
|
|
||
|
if test (count (ls -A ~/inbox)) -ne 0;
|
||
|
set_color red
|
||
|
echo -e "\tInbox not empty!"
|
||
|
set_color normal
|
||
|
ls -1 --quoting-style=literal inbox/ | string join ", "
|
||
|
end
|
||
|
end
|