Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
autocompletion's odd behaviour with packages installed through pip
- X-seq: zsh-workers 53042
- From: Silejonu <silejonu@xxxxxxxx>
- To: Zsh Workers <zsh-workers@xxxxxxx>
- Subject: autocompletion's odd behaviour with packages installed through pip
- Date: Wed, 21 Aug 2024 21:45:07 +0200 (CEST)
- Archived-at: <https://zsh.org/workers/53042>
- List-id: <zsh-workers.zsh.org>
Autocompletion does not work for packages installed through pip until a) the user logs out and logs back in , or b) the user deactivates the current Python venv and reactivates it. Note that, for comparison, Bash is not affected by this issue.
Steps to reproduce:
- `python -m venv /tmp/test`
- `source /tmp/test/bin/activate`
- `pip install ansible`
- Type `ans` and hit tab to autocomplete
- Nothing happens (though syntax highlighting recognizes than `ansible` is a valid command)
- `deactivate`
- `source /tmp/test/bin/activate`
- Type `ans` and hit tab to autocomplete
- This now works correctly
Tested on Zsh 5.8 (CentOS Stream 9, RHEL 9) & 5.9 (Arch Linux).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author