NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Tweek the PS1 for root



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) ?



Home | Main Index | Thread Index | Old Index