diff --git a/plugins/pip/pip.plugin.zsh b/plugins/pip/pip.plugin.zsh
index 71f977bbf..b5433ae9d 100644
--- a/plugins/pip/pip.plugin.zsh
+++ b/plugins/pip/pip.plugin.zsh
@@ -18,12 +18,12 @@ zsh-pip-clear-cache() {
}
zsh-pip-clean-packages() {
- sed -nr '/([^<]+).*/\1/p'
+ sed -n '/\([^<]\{1,\}\).*/\1/p'
}
zsh-pip-cache-packages() {
- if [[ ! -d ${PIP_CACHE_FILE:h} ]]; then
- mkdir -p ${PIP_CACHE_FILE:h}
+ if [[ ! -d ${ZSH_PIP_CACHE_FILE:h} ]]; then
+ mkdir -p ${ZSH_PIP_CACHE_FILE:h}
fi
if [[ ! -f $ZSH_PIP_CACHE_FILE ]]; then