You are not logged in.
Not sure if this is the right section for this, but I hope so :-)
Recently, I started playing with coloured bash prompts.
When I edit my .bashrc user file to make my PS1 green it works, but not so with root's red prompt.
When I log in directly as root, I DO see red prompt, but not so when using
su -
.
Any ideas?
P.S. I am following this wiki article:
https://wiki.archlinux.org/index.php/Co … ic_prompts
Thanks,
Last edited by MatejLach (2011-12-05 18:12:34)
Offline
'su -' causes a login session to be started, which means .bash_profile (or .profile) is read, NOT .bashrc. See the INVOCATION section of bash(1) for a more complete description of the difference between an interactive shell and a login shell.
Offline
Aaah, of course - many thanks!
Offline