Skip to content

Instantly share code, notes, and snippets.

@edcrypt
Created October 22, 2015 00:33
Show Gist options
  • Save edcrypt/90ed3ba24c05c798f8ac to your computer and use it in GitHub Desktop.
Save edcrypt/90ed3ba24c05c798f8ac to your computer and use it in GitHub Desktop.
function fish_greeting --description "Greet the user with the shell's version, and a complementary colorful cow."
set_color --bold; fish -v; set_color normal
set cows cowsay\ {-b,-d,-g,-p,-s,t,-w,-y}
set chosen_cow_index (math (random)%8+1)
set chosen_cow $cows[$chosen_cow_index]
fortune -a -s | eval $chosen_cow | lolcat
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment