mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
pip: move plugin cache to XDG folder (#9299)
This commit is contained in:
parent
f776af2a1f
commit
1617f4ffaf
1 changed files with 5 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue