How Do I Permanently Set a Ps1 Variable in Linux?
Contents How Do I Permanently Change Command Prompt in Linux? After You Have Experimented with Text Customization and Colorization of Your Prompt, and Reached...
How do I permanently change command prompt in Linux?
After you have experimented with text customization and colorization of your prompt, and reached a final that you want to set permanently for all your bash sessions, you need to edit your bashrc file. Save the file by pressing Ctrl+X and then by pressing Y. The changes to your bash prompt will now be permanent.
Where is PS1 defined in Linux?
PS1 is a primary prompt variable which holds [email protected] W\$ special bash characters. This is the default structure of the bash prompt and is displayed every time a user logs in using a terminal. These default values are set in the /etc/bashrc file.