Be a part of our Community. Click Here

Termux Emoji Prompt

Hey buddies, I am going to create an series on Termux Customisation and it's the First Part. Customizing terminal one of the unique thing. For Customizing terminal we can do is add an emoji prompt in Termux. With emoji prompt, you can add colourful emojis in your black and white terminal. This is a really complicated process but to make it simpler I will give you only two commands that will instantly enable the emoji prompt in your termux.    

What is Termux Emoji Prompt?

Whenever you use any terminal you see a dollar sign ($)  and after that dollar sign you can type whatever you want and press enter to execute it. That dollar sign is called as prompt or PS1.  Termux emoji prompt is a basic script that will help you to add random emoji every time you execute any command.  The Emojis will be random on every line and as you know emojis have multiple colours and those colourful emojis are going to add something new to that black and white terminal that we normally use.

For video Click Here

Adding Emoji prompt does not help you with actual Behaviour off your tools and not going to help you to hack anything, it is just for the purpose of aesthetic looks of your terminal. There are more things that you can do with your PS1 prompt, but in this script we are only going to add emojis. This is script is inspired by Luciano Mammino and you can check out his post here.

How to Install Termux Emoji Prompt :

To install temux emoji prompt you have to follow the steps written below, these are just simple copy and paste command that will only take few seconds to execute. 

Step 1: Download the script

To download the script from my GitHub repo to your termux you need to use a curl command. This below command will download a simple text file and the file size is very light, so it will be done in few seconds. Just copy it from below and paste it into your termux and press enter.

curl -fLo emoji.txt https://raw.githubusercontent.com/devilhackers22/devilhackers22.github.io/main/emoji.txt

Now if you done the step then type cd && ls .You will see that you have a file name emoji.txt in your termux.

Step 2: Install emoji.txt in bash.bashrc

After downloading the Emoji.txt file in our Termux, we just have to write the entire Emoji.txt file to the end of bashrc file of the termux. For that, we will use cat command, copy, and paste the below command to perform the installation.

Now if you don't see any error than just type "exit" in your terminal and reopen your termux.

cat emoji.txt >> "/data/data/com.termux/files/usr/etc/bash.bashrc"

Final Look :

After you restart your termux you will see a random Emoji in your bash prompt and our name also, and whenever you press enter or execute any command you will see a different Emoji every time. If you want to test the script, you can just press enter multiple times, and you will see a lot of emojis on different lines.

Additional Step : Replace Devil with your name


It's done but if you want to modify and you have a little knowledge of bash you can edit it, but if you don't know anything about baat I am here to help you. If you want to replace Devil into your name you can do that, it's easy and simple just go to the bash.bashrc file location and open it in any text editor. Here you will find a text named Devil in the last line just replace it with your name. Then save the file (CTRL + S), exit Termux and Run again and boom all done.


If you want to uninstall the Emoji prompt, then you have to go into bash.bashrc file and delete the code of the Emoji prompt. Also, emoji prompt alone can look raw, you can add Neofetch to make it more appealing.


❌Conclusion❌
Termux Emoji prompt is one of my favourite script that allows a unique type of customization in the termux bash prompt. The Emojis add a sense of surprise every time you execute any command. The installation of this script is really simple and easy, and it does not take more than 30 seconds to completely install. If you have any idea or questions you can type it in comments, For now thanks for reading😉.

Don't Forget to join our new Telegram Group.

Post a Comment