Commit 4d3fb286 authored by aph's avatar aph
Browse files

fix pip plugin

parent 9f5a8951
...@@ -18,12 +18,12 @@ zsh-pip-clear-cache() { ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment