How do I make command prompt to end with # if I do sudo -s in mac terminal?
Right now I have $.
|
How do I make command prompt to end with # if I do sudo -s in mac terminal? Right now I have $. | ||||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Assuming you're using bash, you
the | |||
|
feedback
|
|
There's an article on MacWorld about this: http://www.macworld.com/article/146550/2010/02/rootprompt.html | |||
|
feedback
|
|
You need to Instead of
This will show only To get the same prompt as a normal user when you're root, i.e. the following:
you need to enter this:
Add the | |||
|
feedback
|
#. How have you customized your environment? – Potatoswatter Oct 17 '10 at 3:12