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