Skip to content

Instantly share code, notes, and snippets.

@scaint
Created April 28, 2014 12:35
Show Gist options
  • Save scaint/11370488 to your computer and use it in GitHub Desktop.
Save scaint/11370488 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Updates rbenv and it's plugins to latest versions
rbenv_path="$HOME/.rbenv"
plugins_path="$rbenv_path/plugins"
echo -e "\033[1;32mUpdating rbenv\033[0m"
cd "$rbenv_path"
git pull
for plugin in $(ls "$plugins_path"); do
echo -e "\033[1;32mUpdating plugin: $plugin\033[0m"
cd "$plugins_path/$plugin"
git pull
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment