sobolevn / sobole-zsh-theme

Minimalistic zsh theme inspired by the old-fashioned hobbies.
http://sobolevn.me/sobole-zsh-theme/
147 stars 27 forks source link

Root prompt not set to # #19

Closed wsw70 closed 6 months ago

wsw70 commented 3 years ago

The prompt for the user root is $ → it should be set to # when the uid is 0

sobolevn commented 3 years ago

Hi @wsw70!

it should be set to # when the uid is 0

Is this a strict rule? Or a well-known convention?

wsw70 commented 3 years ago

Is this a strict rule? Or a well-known convention?

I cannot really tell, but in 25 years of administrating UNIX systems I have always seen the root prompts as #.

The user's ones vary, but for sh-derived shells (bash, zsh) it was $ and for csh-derived ones (tcsh, ...) it was %.

It is not a "strict rule" because one can change the PS1 prompt, but I would say that it is a standard. Also see https://unix.stackexchange.com/questions/291729/why-is-the-default-symbol-for-a-user-shell-and-the-default-symbol-for-a-root

sobolevn commented 3 years ago

@wsw70 feel free to send a PR with the fix! 👍