From 0818df057cca59a949ffa88947a6b16dec2411ca Mon Sep 17 00:00:00 2001 From: Carlo Sala Date: Sat, 9 Apr 2022 14:45:42 +0200 Subject: fix: use `python3` for all `python` invocations (#10832) --- plugins/python/README.md | 2 +- plugins/python/python.plugin.zsh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/python') diff --git a/plugins/python/README.md b/plugins/python/README.md index c1f0adef8..97c1a34ee 100644 --- a/plugins/python/README.md +++ b/plugins/python/README.md @@ -12,7 +12,7 @@ plugins=(... python) | Command | Description | | ---------------- | -------------------------------------------------------------------------------------- | -| `py` | Runs `python` | +| `py` | Runs `python3` | | `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 | diff --git a/plugins/python/python.plugin.zsh b/plugins/python/python.plugin.zsh index 7a73ab92a..2fbb59577 100644 --- a/plugins/python/python.plugin.zsh +++ b/plugins/python/python.plugin.zsh @@ -1,5 +1,5 @@ # python command -alias py='python' +alias py='python3' # Find python file alias pyfind='find . -name "*.py"' @@ -44,10 +44,10 @@ function pyuserpaths() { alias pygrep='grep -nr --include="*.py"' # Run proper IPython regarding current virtualenv (if any) -alias ipython="python -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'" +alias ipython="python3 -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'" # Share local directory as a HTTP server -alias pyserver="python -m http.server" +alias pyserver="python3 -m http.server" ## venv utilities -- cgit v1.2.3-70-g09d2