Skip to content

Instantly share code, notes, and snippets.

@montanaflynn
Created October 3, 2014 15:45
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save montanaflynn/04246fc5da998d15e713 to your computer and use it in GitHub Desktop.
Save montanaflynn/04246fc5da998d15e713 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
@montanaflynn
Copy link
Author

Extra bonus frogs:

function fish_greeting
        if not type fortune > /dev/null 2>&1
                apt-get install fortune
        end
        if not type cowsay > /dev/null 2>&1
                apt-get install cowsay
        end
        fortune -a | cowsay -f bud-frogs
end

Funny frogs in my fish shell

@ErnestoCobos
Copy link

Nice

@justinatomatic
Copy link

Should add some lolcat

function fish_greeting
        if not type fortune > /dev/null 2>&1
                apt-get install fortune
        end
        if not type cowsay > /dev/null 2>&1
                apt-get install cowsay
        end
        if not type lolcat > /dev/null 2>&1
                apt-get install lolcat
        end
        fortune -a | cowsay -f bud-frogs | lolcat
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment