Make opening your terminal fun

Posted on by

My favorite and least useful thing I have set up on my laptop is to run fortune | ponysay when I open a new bash session.

In my .bashrc file I have the following snipped:

if [ -x /usr/local/bin/ponysay -a -x /usr/local/bin/fortune ]; then
    fortune | ponysay

If you want one script to install everything for you:


echo 'Installing homebrew'
/usr/bin/ruby -e "$(curl -fsSL"

echo 'Installing fortune and ponysay
brew install fortune ponysay

echo "if [ -x /usr/local/bin/ponysay -a -x /usr/local/bin/fortune ]; then\n
    fortune | ponysay\n
fi\n" >> ~/.bashrc