Created
October 11, 2014 17:57
-
-
Save jrnewell/9589003b320e2a03aae0 to your computer and use it in GitHub Desktop.
Quickly update(pull) the .pyenv directory and plugins using 'git up'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "updating .pyenv" | |
cd $HOME/.pyenv | |
git up | |
cd $HOME/.pyenv/plugins | |
for DIR in $(find . -maxdepth 1 -type d); do | |
if [[ "$DIR" == "." ]]; then | |
continue | |
fi | |
BASE_DIR=$(basename $DIR) | |
echo "updating $BASE_DIR" | |
cd "$HOME/.pyenv/plugins/$BASE_DIR" | |
git up | |
done | |
exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not really needed,
pyenv update
does the job.