hypriot / os-rootfs

The root filesystem of HypriotOS
http://blog.hypriot.com/post/how-to-get-docker-working-on-your-favourite-arm-board-with-hypriotos/
MIT License
69 stars 40 forks source link

Root prompt should be # not $ #49

Closed rcludwick closed 6 years ago

rcludwick commented 7 years ago

Nit picky I know, but for those of us that live on the linux command line, the prompt for the root user after doing sudo -i should be # not $.

glensc commented 6 years ago

from bash manual:

\$ If the effective uid is 0, #, otherwise $.

so, PS1 needs to contain \$ literally, if inside double quoted as PROMPTCHAR="\\\$"