How to Christmassify Your Linux Terminal and Shell

Configurare noua (How To)

Situatie

It’s the most wonderful time of the year when the world is in the Christmas mood. It’s the happiest season of all. In this article, we will show some simple and fun Linux tricks to celebrate the season.

Solutie

We will show how to christmassify your terminal and shell. By the end of this guide, you will learn how to customize your shell prompt using Bash variables and escaped characters. In Bash, it is possible to add emojis, change colors, add font styles, as well as run commands that execute every time the prompt is drawn, such as to show your git branch.

To customize your Linux shell prompt to suit this Christmas festive season, you need to make some changes to your ~/.bashrc file.

Add the following to the end of your ~/.bashrc file.

Save the file and close it.

For the chages to start working, you can close and reopen your terminal window, or source the ~/.bashrc using following command.

That’s all! In this article, we showed how to christmassify your terminal and shell in Linux. We showed how to customize your shell prompt using Bash variables and escaped characters. If you have any questions or comments, reach through the feedback form below.

Tip solutie

Permanent

Voteaza

(3 din 6 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?