81f9f3ca1afe3c20cb4e6f3a6fefd0dcb99fe070
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #2271 from ashleyh/master
fix pip plugin
Diff
1diff --git a/plugins/pip/pip.plugin.zsh b/plugins/pip/pip.plugin.zsh
2index 71f977bbfcc810306adf7e04438424e191b3c9e1..b5433ae9d6e25f740757d5b4bd4eca26e7c37ef7 100644
3--- a/plugins/pip/pip.plugin.zsh
4+++ b/plugins/pip/pip.plugin.zsh
5@@ -18,12 +18,12 @@ zsh-pip-clear-cache() {
6 }
7
8 zsh-pip-clean-packages() {
9- sed -nr '/<a href/ s/.*>([^<]+).*/\1/p'
10+ sed -n '/<a href/ s/.*>\([^<]\{1,\}\).*/\1/p'
11 }
12
13 zsh-pip-cache-packages() {
14- if [[ ! -d ${PIP_CACHE_FILE:h} ]]; then
15- mkdir -p ${PIP_CACHE_FILE:h}
16+ if [[ ! -d ${ZSH_PIP_CACHE_FILE:h} ]]; then
17+ mkdir -p ${ZSH_PIP_CACHE_FILE:h}
18 fi
19
20 if [[ ! -f $ZSH_PIP_CACHE_FILE ]]; then