Обновление ohmyzsh
This commit is contained in:
19
zsh/plugins/pip/README.md
Normal file
19
zsh/plugins/pip/README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# pip plugin
|
||||
|
||||
This plugin adds completion for [pip](https://pip.pypa.io/en/latest/),
|
||||
the Python package manager.
|
||||
|
||||
To use it, add `pip` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... pip)
|
||||
```
|
||||
|
||||
## pip cache
|
||||
|
||||
The pip plugin caches the names of available pip packages from the PyPI index.
|
||||
To trigger the caching process, try to complete `pip install`,
|
||||
or you can run `zsh-pip-cache-packages` directly.
|
||||
|
||||
To reset the cache, run `zsh-pip-clear-cache` and it will be rebuilt next
|
||||
the next time you autocomplete `pip install`.
|
||||
@@ -89,6 +89,7 @@ case "$words[1]" in
|
||||
if [[ "$state" == packages ]]; then
|
||||
_pip_all
|
||||
_wanted piplist expl 'packages' compadd -a piplist
|
||||
_files -g "*.(tar.gz|whl)"
|
||||
fi ;;
|
||||
uninstall)
|
||||
_pip_installed
|
||||
|
||||
@@ -9,7 +9,11 @@
|
||||
# If you would like to clear your cache, go ahead and do a
|
||||
# "zsh-pip-clear-cache".
|
||||
|
||||
ZSH_PIP_CACHE_FILE=~/.pip/zsh-cache
|
||||
if [[ -d "${XDG_CACHE_HOME:-$HOME/.cache}/pip" ]]; then
|
||||
ZSH_PIP_CACHE_FILE="${XDG_CACHE_HOME:-$HOME/.cache}/pip/zsh-cache"
|
||||
else
|
||||
ZSH_PIP_CACHE_FILE=~/.pip/zsh-cache
|
||||
fi
|
||||
ZSH_PIP_INDEXES=(https://pypi.org/simple/)
|
||||
|
||||
zsh-pip-clear-cache() {
|
||||
|
||||
Reference in New Issue
Block a user