Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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
Owner

montanaflynn commented Oct 3, 2014

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

C0305 commented Jan 6, 2015

Nice

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