You are not logged in.

#1 2011-12-03 17:49:50

MatejLach
Member
From: United Kingdom
Registered: 2011-06-22
Posts: 314
Website

[SOLVED] root's red bash prompt not functional using su -

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

#2 2011-12-03 18:41:20

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] root's red bash prompt not functional using su -

'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

#3 2011-12-05 18:12:10

MatejLach
Member
From: United Kingdom
Registered: 2011-06-22
Posts: 314
Website

Re: [SOLVED] root's red bash prompt not functional using su -

Aaah, of course - many thanks!

Offline

Board footer

Powered by FluxBB