I messed around with my bash profile (in nano, macOS) a while ago and changed how the Terminal prompt looks. Now, I just want my prompt to be the default, but when I change it in .bash_profile, nothing happens. I'm running macOS Catalina version 10.15.4.

  • Have you restarted the terminal? – DavidPostill Apr 18 at 17:46
  • Just checking: are you sure you're using bash? zsh is the default for Catalina. – Glorfindel Apr 18 at 18:00
  • @DavidPostill What do you mean by restart? How would you do it? I might have but I didn't know if it was "restarting". – mbwins10 Apr 18 at 18:56
  • @Glorfindel I'm not sure. How would I check? – mbwins10 Apr 18 at 18:58
  • What do you get when you execute the command echo $0? – Glorfindel Apr 18 at 19:01

Since macOS Catalina, zsh is the default shell instead of bash. So changing ~/.bash_profile doesn't help; you either need to

  • change your zsh profile through open ~/.zshrc
  • change your default shell to bash through chsh -s /bin/bash
    It's also possible to do this via the GUI but if you're already in Terminal, this is quicker.
| improve this answer | |
  • Right, thanks a lot. In zsh, it's actually even easier, as you can just do PROMPT=" %n " or whatever you want. – mbwins10 Apr 18 at 19:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.