diff options
author | aph <a.hewson@gmail.com> | 2013-11-21 16:58:57 +0000 |
---|---|---|
committer | aph <a.hewson@gmail.com> | 2013-11-21 16:58:57 +0000 |
commit | 4d3fb286d84846b2c64368c38dd8b728da466eac (patch) | |
tree | 8faa83e5459d5c9c88a4e7027755abf3cf4d4d7d | |
parent | 9f5a895192b7d6b75ba717ef4e2c9b6ed7977c68 (diff) | |
download | zsh-4d3fb286d84846b2c64368c38dd8b728da466eac.tar.gz zsh-4d3fb286d84846b2c64368c38dd8b728da466eac.tar.bz2 zsh-4d3fb286d84846b2c64368c38dd8b728da466eac.zip |
fix pip plugin
-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 |