Question about Terminator configuration.
Hello!
I'm using Terminator and Arch Linux and i would like to hide my username and local folder when i'm a user and superuser. I know how to do that when i'm a user. I put "export PS1="> "" in "~/.bashrc" and it works fine, but i would like to set another color for "> " when i change to superuser and i don't know how to do that. How can a do that? Thanks! |
You can find many guides on how to customize the prompt.
There are actually 4 different prompts i.e PS1-PS4. PS2 is the secondary prompt which already uses ">" as default. If not changed will be white so technically you could tell the difference but if not paying attention you could easily get confused. https://wiki.archlinux.org/index.php/Color_Bash_Prompt |
Quote:
What i did was create a "/root/.bashrc" with the following content: Code:
PS1="\[$(tput setaf 4)\]> \[$(tput sgr0)\]" Code:
#PS1='[\u@\h \W]\$ ' |
All times are GMT -5. The time now is 03:21 AM. |