Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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


1 Answers

  1. Go to Preferences > Tools > Terminal
  2. click on the folder icon in Shell path
  3. Select your preferred, bash, zsh ect.
  4. Close and reopen terminal
like image 171
Haider Malik Avatar answered Jan 25 '26 22:01

Haider Malik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!