Skip to content

Instantly share code, notes, and snippets.

@alixaxel
Forked from montanaflynn/fortune.fish
Created October 30, 2015 21:42
Show Gist options
  • Save alixaxel/6c632ee1e778aa019244 to your computer and use it in GitHub Desktop.
Save alixaxel/6c632ee1e778aa019244 to your computer and use it in GitHub Desktop.
Fun with fish and fortunes
# place this in your fish path
# ~/.config/fish/config.fish
function fish_greeting
if not type fortune > /dev/null 2>&1
apt-get install fortune
end
fortune -a
end
funcsave fish_greeting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment