[gentoo-user] Re: Why is PS1 (the console prompt) different for the root user?
On 2017-06-10 09:12, Nikos Chantziaras wrote: > I noticed that the root prompt does not include the full path of the > current directory. > ... > So for users, I can see where I am ("/usr/bin"). For root, I cannot. It > just says "bin". > ... > Is there a rationale for this? One guess: when you're a normal user, you're likely to be in an X terminal emulator, and probably a fancy toolkit based one too. That makes overflowing lines less of a problem than on a bare 80x25 console which may be all you can work with as root, especially in an emergency. But then, I may be making up a rationale when there is really none and it's all just a historical accident, as Alan says. -- Please *no* private Cc: on mailing lists and newsgroups Personal signed mail: please _encrypt_ and sign Don't clear-text sign: http://primate.net/~itz/blog/the-problem-with-gpg-signatures.html
[gentoo-user] Re: Why is PS1 (the console prompt) different for the root user?
On 06/10/2017 09:24 PM, Toralf Förster wrote: On 06/10/2017 08:06 PM, Nikos Chantziaras wrote: I'm not seeing it :-P Well, not really documented, but I'd say to have (beside the user name) a different thing to indicate that this is the super user command line. It's in red, has the "username@" missing, and has a "#" prefix instead of an "$". That's a very good indication already that it's a root shell.
Re: [gentoo-user] Re: Why is PS1 (the console prompt) different for the root user?
On 06/10/2017 08:06 PM, Nikos Chantziaras wrote: >> > > I'm not seeing it :-P Well, not really documented, but I'd say to have (beside the user name) a different thing to indicate that this is the super user command line. -- Toralf PGP 23217DA7 9B888F45 signature.asc Description: OpenPGP digital signature
[gentoo-user] Re: Why is PS1 (the console prompt) different for the root user?
On 06/10/2017 11:50 AM, Toralf Förster wrote: On 06/10/2017 08:12 AM, Nikos Chantziaras wrote: Is there a rationale for this? Yes, please look into /etc/bash/bashrc (near to the end) ;) I'm not seeing it :-P