diff options
author | Robby Russell <robby@planetargon.com> | 2013-11-24 10:32:19 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-11-24 10:32:19 -0800 |
commit | 81f9f3ca1afe3c20cb4e6f3a6fefd0dcb99fe070 (patch) | |
tree | f1fc22556f90e1c150be287dcc0c7fcf9d067f48 /plugins/pip | |
parent | 83462b3bffdaa1ad720fb42ecb7422b370bbfa3d (diff) | |
parent | 4d3fb286d84846b2c64368c38dd8b728da466eac (diff) | |
download | zsh-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.zsh | 6 |
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 |