I am using zsh shell and I am trying to change default python in my mac which is currently python2.
I am getting the following:
➜ alias python = 'python3'
zsh: bad assignment
Why is it happening?
Remove the whitespace before and after the equal sign.
alias python='python3'
As a sidenote, you'll want to put this line in the .zshrc file if you want the alias to persist.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With