Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
June 24, 2020 11:37 am GMT

Let your terminal greet you like a pro

If you are a developer, the terminal is your one-stop for most of your day to day development activities. As a developer we made sure that our coding setup looks great, we have an amazing dark theme or minimal setup, etc, etc..

Recently I thought of making my terminal look geekier so I just added an echo in my bashrc file but that was not enough it has to look cool right? I just added the ASCCI representation of my profile picture.

So let's start by getting an image, I used one my own image that I created using gimp you can find the tutorial here

1. Create an ASCII art of your image

Alt Text

You can visit asciiart URL and convert your image into an ASCII version.

If you don't have an image you can find some beautiful ASCII art at ascii art archive

There are various tools to generate ASCII text I have used this one here

2. Let's get the things ready

  • First, open your terminal and create a new filenano mygreeting
  • Next, copy and paste you ASCII art and text to this filenano terminal

You can hit a few tabs to adjust in the center and save the file to use in future

3. Let's revive our terminal and add this as a greeting message

Now, we need to display the content of our file created in step 2 to get displayed in the terminal as soon as it is fired up

  • Open your bashrc file
    nano ~/.bashrc
    Alt Text

  • Add a small line at the bottom cat mygreeting and it's done

Fire up your terminal to have a look at your beautiful message waiting for you

Amazing right?

Cakewalk right !! Go ahead and try this let me know your thoughts in the comment section.

Thanks for reading!!


Original Link: https://dev.to/kartikpuri95/let-your-terminal-greet-you-like-a-pro-4hka

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To