bashmacosterminalcommand-promptsu

How can i get default prompt and get rid of "sh-3.2#"?


Recently, i downloaded brew and npm to my reinstalled macOS, and now i noticed, when i write "su" command and write my password, i am getting this:

su.png

My problem is, I want to get old su prompt, how can i get it?

I can't even remember what was it saying when i type su command. I don't know what to do, so i couldn't try anything.

I've searched and all i found is "this is root, it is ok". I can get it is root but i want to get old look. When i type "whoami" it says root.

Thanks for all help!

Sorry for all mistakes in my question


Solution

  • Ok i changed it to my wish finally!

    Step 0:

    su -> password
    

    Step 1:

    nano .bash_profile
    

    Step 2:

    export PS1="\u@\h\w $ "
    

    Step 3:

    CTRL - O -> Return -> CTRL - X
    

    Result.png