oh-my-fish / theme-agnoster

MIT License
96 stars 64 forks source link

Do not show while getting root permiission #58

Closed lumynou5 closed 2 years ago

lumynou5 commented 2 years ago

I used sudo -s, and it looks like root@dname:path#, not the pretty UI in the example in readme.

image

sn0cr commented 2 years ago

Hi @Luminous-Coder, if I remember correctly (the screenshot is now many years old) you also need to setup the shell on the root user. For more information I would have a look at the man page of sudo how sudo -s works.

lumynou5 commented 2 years ago

Hi @Luminous-Coder, if I remember correctly (the screenshot is now many years old) you also need to setup the shell on the root user. For more information I would have a look at the man page of sudo how sudo -s works.

Thanks. BTW, does setting fish for root user has any other side effect?

sn0cr commented 2 years ago

I don't think so, as the shell that is set in /etc/passwd is only used interactively and not in scripts, I assume. So hopefully without side effects.