Display Animated Christmas Tree In Terminal

Display Animated Christmas Tree In Terminal

Merry Christmas, everyone! I’m really excited to share an interesting and cool Bash trick that I came across in this festival occasion. Today, I will show you how to display animated Christmas tree in Terminal. I stumbled upon this script while searching for an interesting stuff to post in our blog for Christmas. Luckily, I have found one. Well, let us see what it is, shall we?

Display Animated Christmas Tree In Terminal

Open your terminal and download this Christmas tree Bash script. This cool Bash script is written by Sergio Lepore.

wget -d -c -O "christmas.sh" "https://raw.githubusercontent.com/sergiolepore/ChristBASHTree/master/tree-EN.sh"

Make it executable using command:

chmod +x christmas.sh

Finally, display the animated Christmas in your BASH:


And, the result was….

Cool, yeah?

Let us make some little changes. Edit the script:

vim christmas.sh

Find the following lines and make the changes as you wish. I have added an extra two words (OSTECHNIX READERS) after “MERRY CHRISTMAS”.  Adjust the values (increase or decrease) to make the sentence appear in middle. Also, I have added one more line.

tput cup $lin $((c - 15)); echo MERRY CHRISTMAS OSTECHNIX READERS!
tput cup $((lin + 1)) $((c - 10)); echo And lots of CODE in $new_year
tput cup $((lin + 2)) $((c - 16)); echo Wish You A Very Happy New Year 2018

Here is the output after adding/modifying the lines.

Display Animated Christmas Tree In Terminal

Animated Christmas Tree In Terminal

Have fun and enjoy your holidays!


Thanks for stopping by!

Help us to help you:

Have a Good day!!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.