Suhan Dharmasuriya
Suhan Dharmasuriya

Reputation: 303

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?

Upvotes: 4

Views: 4297

Answers (2)

gstlouis
gstlouis

Reputation: 123

and to go back to bash instead

you can list the shells

 cat /etc/shells 

in the terminal, to update your account to use bash run chsh -s /bin/bash. enter password if need be and shut it down and re-open

Upvotes: 0

Steffen Jurrack
Steffen Jurrack

Reputation: 108

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.

Upvotes: 6

Related Questions