MAC Adding Message to Terminal

linux-terminal

In a previous post called powershell-profile-shortcuts   I showed you how I could customize my terminal (in that case PowerShell or Cmder) to print out a customized message (Sociable Geek) when I started it up in order to personalize it a bit. This of course is purely for show and serves no real purpose except for the fact that I like it.  Working on my Macbook Pro I wanted to do the same thing when I started up Terminal (or ITerm2).  This turns out to be really simple.  All you need to do is open up terminal and type the following command.

sudo pico /etc/motd  (which stands for message of the day)

next type in your machine admin password

When the file is open, all you need to do is paste in your message, or in my case, my large ascii art version of Sociable Geek.  I used this generator http://www.desmoulins.fr/index_us.php?pg=scripts!online!asciiart

Then just save the file (^X)

Answer Yes to override the file, then enter.

When you close and open terminal, you will now have your custom message.

 1__bash