I have a rather silly question, but I can’t figure it out.
I want to add some colors to my shell.
So from CLI I ran the following:
export PS1='\[\033[01;31m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]$ \[\033[00m\]'
![image|690x16](upload://l4xNho8hH7sCLRiTm6enKYEpu7Z.png)
This works perfectly, but it is only temporary. When I log out and back in, the colors are gone.
I’ve added the above to my /root/.bashrc file, but it just ends up giving the whole thing as prompt.
Any help will be appreciated.