Answers for "change shell prompt color linux"

2

change shell prompt color linux

vim $HOME/.bashrc

# add this line at the end for a green shell prompt, press G in vim to go to file end
export PS1="\e[0;32m[\u@\h \W]\$ \e[m"
# logout and back in
Posted by: Guest on April-21-2022
0

How to Change BASH Prompt Color

PS1="\[\033[42m\]\[\033[31m\]\u@\h:\w\$ "
Posted by: Guest on May-07-2021

Code answers related to "change shell prompt color linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language