You can learn more about it on the man page.įor instance, when you type in: echo $PS1 You will need to utilize the PS1 environment variable which controls what is being displayed as the prompt. You can tweak the font and color of the bash prompt ( using commands. This is a bit complicated and not recommended for beginners. Tip 5: Changing the font and color of the bash prompt (for advanced users) Similarly, you can also change your username, but it requires some additional configuration that includes killing all the current processes associated with the active username, so we’ll avoid it to change the look/feel of the terminal. To permanently change the hostname, you need to type in the following: sudo hostnamectl set-hostname CUSTOM_NAME So, when you restart, it will revert to the default. However, this will be applicable only to the current sessions. To change the hostname, you can type in the following: hostname CUSTOM_NAME However, I permanently changed the hostname to “ itsfoss“, so now it looks like this: Usually, you will see your username and hostname (your distribution) as the bash prompt when launching the terminal without any changes.įor instance, it would be “ankushdas :~$” in my case. Tip 4: Tweaking the bash prompt variables You can also choose to use colors from your system theme if you want a similar color setting to your theme. If you want to enable transparency just like I did, you click on “ Use transparent background” option. You can also adjust the transparency to make it look even cooler.Īs you can notice, you can change the color palette from a set of pre-configured options or tweak it yourself. Tip 3: Change the color pallet and transparencyĪpart from the text and spacing, you can access the “Colors” tab and change the color of the text and background of your terminal. Under the Text tab, select Custom font and then change the font and size (if required). If you want suggestions, go with Share Tech Mono (open source) or Larabiefont (not open source). One more thing! Use monospaced fonts otherwise, fonts might overlap and the text may not be clearly readable. If you want something different, download and install the font on your Linux system first. Now you’ll get the option to customize the text appearance, font size, font style, spacing, cursor shape, and toggle the terminal bell sound as well.įor changing the terminal font, you can only change to what’s available on your system. Select the profile that you want to customize. Once you head into the preferences, you will notice the General options to change the theme and other settings. Apart from that, you may switch between the dark or light theme, if you do not want to change the system theme. You may change the system theme and the terminal theme gets changed. That was the suggestion I wanted to put forward. You can easily change the terminal profiles and open a new terminal window with the new profile. Profiles help separate the customization.Īs you can see, Abhishek has separate profiles for taking screenshots and making videos. Suppose you make some weird changes and cannot recall the default value. Why? Because this way, your changes won’t impact the main terminal profile. I would advise you to create a new profile for your customization. Tip 0: Use separate terminal profiles for your customization This is where you’ll find all the settings to change the appearance of the terminal. Here, click on “ Preferences” as shown in the screenshot below: In the top right corner, look for the hamburger menu. But, most of the advice should apply to other terminals as well.įor most elements like color, transparency, and fonts, you can utilize the GUI to tweak it without requiring you to enter any special commands. This tutorial utilizes a GNOME terminal on Pop!_OS to customize and tweak the look of the terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |