Created
February 11, 2018 06:25
-
-
Save its-arun/e0912adf970c3dac68cc34be4ba6c14a to your computer and use it in GitHub Desktop.
Dynamic MOTD for MacOS using lolcat, cowsay and fortune.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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