2017-12-05 22:39:10 -08:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
source ${0:A:h}/../../deploy
|
|
|
|
source env.zsh
|
|
|
|
|
|
|
|
install() {
|
|
|
|
_ensure_repo pyenv/pyenv $PYENV_ROOT
|
|
|
|
}
|
|
|
|
|
|
|
|
update() {
|
2017-12-31 22:33:49 -08:00
|
|
|
if [[ -n $PYENV_ROOT ]]; then
|
2017-12-05 22:39:10 -08:00
|
|
|
cd $PYENV_ROOT && git pull
|
|
|
|
for ver in $PYENV_ROOT/plugins/*(/N); do
|
|
|
|
cd $ver && git pull
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
link() {
|
|
|
|
mklink config/flake8 $XDG_CONFIG_HOME/
|
|
|
|
}
|
|
|
|
|
|
|
|
clean() {
|
|
|
|
rm -fv $XDG_CONFIG_HOME/flake8
|
|
|
|
rm -rfv $PYENV_ROOT
|
|
|
|
}
|
|
|
|
|
|
|
|
init "$@"
|