Last active
July 12, 2023 17:50
-
-
Save aviiciii/48a9c1fdb935958a60928a35e0b6cf91 to your computer and use it in GitHub Desktop.
Use 'py' instead of 'python3' in macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # open in terminal | |
| $ nano ~/.zshrc | |
| # this open a file in nano editor | |
| # add the following line in the editor | |
| alias py=python | |
| or | |
| alias py=python3 | |
| # Make sure to save (write out) by pressing Ctrl+O then Enter. Then press Ctrl+X and Enter to exit nano. | |
| # Close the terminal and open | |
| # Check if alised using | |
| $ py --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment