The terminal emulator plays an integral part in a Linux system, and many users like to change its theme for a customized presentation. Users prefer a quick makeover within their Linux distribution. With a few tweaks, you can change the entire appearance of the terminal window.
Since you spend most of your time within the terminal, why not make it look like what you prefer. The graphical user interface (GUI) does not need any special commands for customization, so a quick reference guide like this should serve you well.
Check out the following tips for a quick, seamless transition from your old dull and drab terminal to a customized, rustic look.
1. Create a New Terminal Profile
Before you make any changes to the terminal, creating a new profile is advisable. This way, the changes won’t affect the main terminal profile. It is highly recommended to create a new profile and revert to your previous settings if you are unable to reinstate the default values or if the changes are not as per your liking.
You can switch between the terminal profiles whenever you want and the system will open another terminal with the new profile settings.
2. Use a Dark/Light Terminal Theme
If you are not looking to change your system’s theme, you can oscillate between light and dark terminal themes instead. You can view the theme settings under General in the Preferences box and change the setting as per your choice.
You’ll find the Preferences option on your terminal. In the top right corner of your terminal, you can access the hamburger menu; from there, select the Preferences option, followed by the General option.
3. Change the Font Type and Size
Select the profile you want to customize before changing the font type and size. After selecting the profile, you can review the various options to change the appearance of the text, cursor shape, spacing, font type, and size.
You can also change the font for the terminal by choosing another font from the options available. In case you need some other font, you will need to download and install it on your system.
Note: Users should choose monospaced fonts only. Otherwise, all characters will overlap, making the text difficult to read.
4. Change the Color Scheme and Transparency
You already know how to change the font type, size, and spacing. How about adding some zest to the terminal? That’s right; you can also choose a custom colorful pallet for your terminal. The Colors tab in the menu will help you change the text color and the terminal background color.
If you want to make it more stylish, you can adjust the transparency on the terminal. The color palette in the options menu lets you play with unique coloring too.
5. Tweak the Bash Prompt Variables
Usually, the username you set while installing your Linux OS appears along with the hostname as the bash prompt. For example, if your username is user1 and you’re using Ubuntu, the default bash prompt will be user1@ubuntu.
If you want to change your machine’s hostname, you can type:
hostname customname
…where customname is the new hostname that you want to set for your machine.
Unfortunately, this change is restricted to the current session only. In order to permanently change the hostname, you need to restart the system and then type:
sudo hostnamectl set-hostname customname
Similarly, you can change your username, but this requires some extra levels of configuration, so it is best to steer clear away from this modification if you’re a beginner.
6. Change the Appearance of the Bash Prompt
This tweak is recommended for advanced users only, especially those well-versed with the terminal and bash scripting. To tweak the font and color of the bash prompt, you can use commands to do your bidding.
Before you embark on making any changes, you have to utilize the PS1 environment variable that helps in controlling the display via a prompt.
For example, when you type in:
echo $PS1
The output will be something like this:
[e]0;u@h: wa]${debian_chroot:+($debian_chroot)}[