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.
26 lines
655 B
Fish
26 lines
655 B
Fish
# Defined in /tmp/fish.soaTnu/fish_greeting.fish @ line 2
|
|
function fish_greeting
|
|
if test "$TERM_PROGRAM" = vscode
|
|
return
|
|
end
|
|
|
|
if set -q fish_private_mode
|
|
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
|