1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 23:30:08 +00:00

Merge pull request #2271 from ashleyh/master

fix pip plugin
This commit is contained in:
Robby Russell 2013-11-24 10:32:19 -08:00
commit 81f9f3ca1a

View file

@ -18,12 +18,12 @@ zsh-pip-clear-cache() {
} }
zsh-pip-clean-packages() { zsh-pip-clean-packages() {
sed -nr '/<a href/ s/.*>([^<]+).*/\1/p' sed -n '/<a href/ s/.*>\([^<]\{1,\}\).*/\1/p'
} }
zsh-pip-cache-packages() { zsh-pip-cache-packages() {
if [[ ! -d ${PIP_CACHE_FILE:h} ]]; then if [[ ! -d ${ZSH_PIP_CACHE_FILE:h} ]]; then
mkdir -p ${PIP_CACHE_FILE:h} mkdir -p ${ZSH_PIP_CACHE_FILE:h}
fi fi
if [[ ! -f $ZSH_PIP_CACHE_FILE ]]; then if [[ ! -f $ZSH_PIP_CACHE_FILE ]]; then