Search code examples
bashmacosaliasmacos-catalina

Alias in bash_profile not working after MacOS Catalina upgrade


I just upgraded to macOS Catalina (10.15.2) from macOS Mojave. I have used aliases in my ~/.bash_profile and it stopped working after Catalina upgrade.

alias mci='mvn clean install'
alias mcit='mvn clean install -Dmaven.test.skip=true'
alias mcid='mvn clean install -Dmaven.surefire.debug'

What should I do?


Solution

  • What kind of shell are you using? bash? zsh?

    Have you changed anything else in your:

    .profile .bash_profile .bashrc

    If you could add your files here maybe there is a "bug" in the beginning for the files?

    Seems catalina has changed the default shell to zsh. So maybe moving your .bashrc is now .zshrc and .bash_profile is now .zprofile will fix this.