summaryrefslogtreecommitdiff
path: root/plugins/pip
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2013-11-24 10:32:19 -0800
committerRobby Russell <robby@planetargon.com>2013-11-24 10:32:19 -0800
commit81f9f3ca1afe3c20cb4e6f3a6fefd0dcb99fe070 (patch)
treef1fc22556f90e1c150be287dcc0c7fcf9d067f48 /plugins/pip
parent83462b3bffdaa1ad720fb42ecb7422b370bbfa3d (diff)
parent4d3fb286d84846b2c64368c38dd8b728da466eac (diff)
downloadzsh-81f9f3ca1afe3c20cb4e6f3a6fefd0dcb99fe070.tar.gz
zsh-81f9f3ca1afe3c20cb4e6f3a6fefd0dcb99fe070.tar.bz2
zsh-81f9f3ca1afe3c20cb4e6f3a6fefd0dcb99fe070.zip
Merge pull request #2271 from ashleyh/master
fix pip plugin
Diffstat (limited to 'plugins/pip')
-rw-r--r--plugins/pip/pip.plugin.zsh6
1 files changed, 3 insertions, 3 deletions
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 '/<a href/ s/.*>([^<]+).*/\1/p'
+ sed -n '/<a href/ s/.*>\([^<]\{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