Re: Tweek the PS1 for root
MJ <[email protected]> Sun, 14 Jun 2026 12:27:17 +1000
| Newsgroups | gmane.os.netbsd.general |
|---|---|
| Message-ID | <[email protected]> |
You need to "su -" (as this triggers a login shell to root) and throw those commands in the relevant shell configuration script, ie, .cshrc, .tcshrc, .zshrc, .bashrc etc. On 14/06/2026 12:33 am, Todd Gruhn wrote: > When I login as user, this is what works > > PS1="gandalf$ " > export PS1 > > When I su to root, how do I get that to happen? > Put it in a specific file (.login) ?