Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: strange behaviour with .zsh and su



Louis-David Mitterrand <mito@xxxxxxxxxxx> writes:
> user but now when I 'su' to root from that account root's .zshrc isn't
> sourced anymore even though I put root's .zshrc into its own ZDOTDIR...

"su" generally doesn't start the shell as a login shell, so your /etc/zprofile
is not sourced. You probably want to use "su -" instead.


        Stefan



Messages sorted by: Reverse Date, Date, Thread, Author