Skip to content

Instantly share code, notes, and snippets.

@its-arun
Created February 11, 2018 06:25
Show Gist options
  • Save its-arun/e0912adf970c3dac68cc34be4ba6c14a to your computer and use it in GitHub Desktop.
Save its-arun/e0912adf970c3dac68cc34be4ba6c14a to your computer and use it in GitHub Desktop.
Dynamic MOTD for MacOS using lolcat, cowsay and fortune.
#Before running script give permission using "chmod +x DynamicMOTD.sh"
#Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#Install Lolcat, Cowsay and Fortune
brew install lolcat
brew install cowsay
brew install fortune
#Configuring .bash_profile and .bashrc
printf "if [ -f ~/.bashrc ]; then\n\t . ~/.bashrc\nfi" >> ~/.bash_profile
printf "fortune | cowsay | lolcat" >> ~/.bashrc
#Hushlogin to remove lastlogin
touch ~/.hushlogin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment