Last active
December 30, 2015 21:09
-
-
Save Nyoho/7885459 to your computer and use it in GitHub Desktop.
vagrant plugin update ではまったので、vagrant plugin uninstall & install を全部やる関数を書いておいた。
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
function vagrant-plugin-reinstall-all { | |
for p in `vagrant plugin list|egrep '.+\s\(.+\)$'|awk '{print $1}'` | |
do | |
echo "Reinstall the '${p}' plugin started." | |
vagrant plugin uninstall $p | |
vagrant plugin install $p | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment