1diff --git a/plugins/pip/pip.plugin.zsh b/plugins/pip/pip.plugin.zsh
2index aaae90185e40f45b3a25eb7d255b34945bccbe23..a46e7658c89f5648773b2eea8611c013f1c97467 100644
3--- a/plugins/pip/pip.plugin.zsh
4+++ b/plugins/pip/pip.plugin.zsh
5@@ -9,7 +9,11 @@
6 # If you would like to clear your cache, go ahead and do a
7 # "zsh-pip-clear-cache".
8 9-ZSH_PIP_CACHE_FILE=~/.pip/zsh-cache
10+if [[ -d "${XDG_CACHE_HOME:-$HOME/.cache}/pip" ]]; then
11+ ZSH_PIP_CACHE_FILE="${XDG_CACHE_HOME:-$HOME/.cache}/pip/zsh-cache"
12+else
13+ ZSH_PIP_CACHE_FILE=~/.pip/zsh-cache
14+fi
15 ZSH_PIP_INDEXES=(https://pypi.org/simple/)
1617 zsh-pip-clear-cache() {