This way, the system will use python3 for running python executables. Tip: For scripts, instead of using a shebang like: #!/usr/bin/env python If you launch interpreters more often (I do), you can always create more aliases to add as well, i.e.: alias 2='python2'
If you want to invoke the 'original' python (that refers to python2) on occasion, you can use command python, which will leaving the alias untouched, and works in all shells. With this, python command now invokes python3. This way, your alias will work across shells. In your ~/.profile, and then source ~/.profile in your ~/.bash_profile and/or your ~/.zsh_profile with a line like: &.
However, you can alias the commands in most shells, Since the default shells in macOS (bash in 10.14 and below zsh in 10.15) share a similar syntax. Changing the default python executable's version system-wide could break some applications that depend on python2.