Hello!
I am getting confused with profile, bashrc, etc.
The prompt string I want to use is
PS1="[EMAIL PROTECTED] \W]\$ "
I therefore wrote it in /etc/profile (at two levels, root and non-root),
~/.bash_profile and ~/.bashrc.
If I log in as a plain user (moi), I get this:
[EMAIL PROTECTED] moi]$
which is all right. But, if I log in as root, I get the basic default
bash-2.05b# .
I thought that /etc/profile should provide the default, but I was
obviously wrong. Trying to mend things, I created two files
/root/.bash_profile and /root/.bashrc, writing just PS1 in each. Now,
logging in as root, the result is
[EMAIL PROTECTED] root]$
which is wrong, since "$" appears in place of "#", as though my syntax
of PS1 were incorrect, but I don't see that it is.
How am I to clean up all this? I'll be grateful for all suggestions.
Charles
--
[email protected] mailing list