Python 3 alias All In One
python3 / py3 / python
# $ vim .zshrc
$ code .zshrc
$ source ~/.zshrc
$ py3 --version
Python 3.9.6
$ python --version
Python 3.9.6
$ python3 --version
Python 3.9.6
$ which py3
py3: aliased to python3
$ which python
python: aliased to /usr/bin/python3
$ which python3
/usr/bin/python3
demos
.zshrc
# ...
# Python 3 ✅
alias python=/usr/bin/python3
# Python3
alias py3='python3'
# export PATH="/usr/bin/python3:$PATH"
# export PATH="/usr/bin/:$PATH"
# $ cd /usr/bin/ && ls | grep "python" ✅
# $ cd /usr/bin/ && ls -al | grep "python" ✅
# .bash_profile
source ~/.bash_profile
# end zsh
# source ~/.zshrc