Re:Ask HN: ZSH Config for Root Account
by lgeorget on Thursday February 13, 2020 @02:52AM
(#22316069)
That's also my advice. Maybe use sudo for specific and regular root tasks if you like the comfort of your own shell but avoid changing root's shell.
Re:Ask HN: ZSH Config for Root Account
by thepapanoob on Thursday February 13, 2020 @03:16AM
(#22316148)
what ive been doing is simply
sudo su - root -c "/bin/zsh"
whenever i need to do quite alot with root
After that, I never messed with root's shell again.
Furthermore I actually like it to be uncomfortable at the # prompt. Having all of $'s creature comforts strikes me as a little dangerous.
I suggest you leave good enough alone.