How do I set the bash prompt?

How do I set the bash prompt?
Answer
To change your Bash prompt, you just have to add, remove, or rearrange the special characters in the PS1 variable. But there are many more variables you can use than the default ones. Leave the text editor for now—in nano,
press Ctrl+X to exit.
 

Tìm kiếm

Back
Top