add plugins and install latest for each asdf plugin

This commit is contained in:
James Walker 2018-10-26 10:25:13 -04:00
parent 9cba688340
commit d36149842c
Signed by: walkah
GPG Key ID: 3C127179D6086E93

View File

@ -1,5 +1,11 @@
#!/bin/sh #!/bin/sh
function install_latest() {
version=$(asdf list-all $1 | grep -v - | tail -1)
asdf install $1 $version
asdf global $1 $version
}
echo "* Updating homesick..." echo "* Updating homesick..."
homesick pull homesick pull
homesick symlink homesick symlink
@ -16,9 +22,11 @@ echo "* Upgrading mac app store apps..."
mas upgrade mas upgrade
echo "* asdf update..." echo "* asdf update..."
for plugin in $(cat ~/.tool-versions | awk '{print $1}'); do asdf plugin-add $plugin; done
asdf update asdf update
asdf plugin-update --all asdf plugin-update --all
asdf install asdf install
for plugin in $(cat ~/.tool-versions | awk '{print $1}'); do install_latest $plugin; done
echo "* Syncing repositories..." echo "* Syncing repositories..."
mr -j 5 update mr -j 5 update