diff options
| author | Marc Cornellà <marc@mcornella.com> | 2024-09-15 15:06:47 +0200 |
|---|---|---|
| committer | Marc Cornellà <marc@mcornella.com> | 2024-09-15 15:12:22 +0200 |
| commit | a84bc2dadd9c0925c2f88e66a1796746e63fa427 (patch) | |
| tree | c989541412f4b46c286745fdd353299b7b17b63f | |
| parent | 33ac2ee30f92183565b30ef2ed847870d0b9b052 (diff) | |
| download | zsh-a84bc2dadd9c0925c2f88e66a1796746e63fa427.tar.gz zsh-a84bc2dadd9c0925c2f88e66a1796746e63fa427.tar.bz2 zsh-a84bc2dadd9c0925c2f88e66a1796746e63fa427.zip | |
fix(python)!: remove harmful `ipython` alias (#12676)
BREAKING CHANGE: the `ipython` alias was incorrectly trying to manually call
ipython from the installed module in the virtual environment, when actually
a command already exists when loading the virtual environment. This change
removes the unnecessary alias and allows calling the right command.
Fixes #12676
| -rw-r--r-- | plugins/python/README.md | 1 | ||||
| -rw-r--r-- | plugins/python/python.plugin.zsh | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/plugins/python/README.md b/plugins/python/README.md index b990a26b9..8014992de 100644 --- a/plugins/python/README.md +++ b/plugins/python/README.md @@ -13,7 +13,6 @@ plugins=(... python) | Command | Description | | ---------------- | -------------------------------------------------------------------------------------- | | `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 | | `pygrep <text>` | Looks for `text` in `*.py` files in the current directory, recursively | diff --git a/plugins/python/python.plugin.zsh b/plugins/python/python.plugin.zsh index 811745257..63733e1de 100644 --- a/plugins/python/python.plugin.zsh +++ b/plugins/python/python.plugin.zsh @@ -43,9 +43,6 @@ function pyuserpaths() { # Grep among .py files alias pygrep='grep -nr --include="*.py"' -# Run proper IPython regarding current virtualenv (if any) -alias ipython='python3 -c "import sys; del sys.path[0]; import IPython; sys.exit(IPython.start_ipython())"' - # Share local directory as a HTTP server alias pyserver="python3 -m http.server" |
