Unverified Commit ddf673b3 authored by MikuHatsune39's avatar MikuHatsune39 Committed by GitHub

fix(python): set `py` alias if `py` is not installed (#12059)

parent 76a1dfcf
......@@ -12,7 +12,7 @@ plugins=(... python)
| Command | Description |
| ---------------- | -------------------------------------------------------------------------------------- |
| `py` | Runs `python3` |
| `py` | Runs `python3`. Only set if `py` is not installed. |
| `ipython` | Runs the appropriate `ipython` version according to the activated virtualenv |
| `pyfind` | Finds .py files recursively in the current directory |
| `pyclean [dirs]` | Deletes byte-code and cache files from a list of directories or the current one |
......
# python command
alias py='python3'
# set python command if 'py' not installed
builtin which py > /dev/null || alias py='python3'
# Find python file
alias pyfind='find . -name "*.py"'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment