Get greeted when you launch the terminal!

So, after a long long gap, I am finally back to blogging! Had to coz I made some simple but cool stuff today and wanted to share with all of you! 😀

Basically, this is a shell script which greets you when you launch the terminal on Linux based systems. So when you “accidently” launch the terminal after 12am, it will greet you with something like “Enough of coding for the day. You should take some rest” 😀 And will wish GM, GA, GE rest of the times 🙂

How did the idea come?

I came to know about the espeak command from a friend. It speaks out what you give as an argument to it. So I tried this out and thought of making something cool with this. And then the idea came to my mind…..

The code

You can download the script from github. The simple steps required to set it up for your terminal are given in the README file. Go through it. As it is released under GPL v2, you are legally free to modify the source, change the messages and timings as per your wish 😀

Do read the man page of espeak. You can also play around with the speed and pitch 🙂
Do let me know if you face any problem in setting it up.

Enjoy! Happy Coding! 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s