Skip to content

Instantly share code, notes, and snippets.

@jrnewell
Created October 11, 2014 17:57
Show Gist options
  • Select an option

  • Save jrnewell/9589003b320e2a03aae0 to your computer and use it in GitHub Desktop.

Select an option

Save jrnewell/9589003b320e2a03aae0 to your computer and use it in GitHub Desktop.
Quickly update(pull) the .pyenv directory and plugins using 'git up'
#!/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 $?
@jrnewell
Copy link
Copy Markdown
Author

Not really needed, pyenv update does the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment