From d36149842cf4133908828f777b1c23b5497a0faa Mon Sep 17 00:00:00 2001 From: James Walker Date: Fri, 26 Oct 2018 10:25:13 -0400 Subject: [PATCH] add plugins and install latest for each asdf plugin --- home/bin/goodmorning.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home/bin/goodmorning.sh b/home/bin/goodmorning.sh index ef6170f..48543c3 100755 --- a/home/bin/goodmorning.sh +++ b/home/bin/goodmorning.sh @@ -1,5 +1,11 @@ #!/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..." homesick pull homesick symlink @@ -16,9 +22,11 @@ echo "* Upgrading mac app store apps..." mas upgrade echo "* asdf update..." +for plugin in $(cat ~/.tool-versions | awk '{print $1}'); do asdf plugin-add $plugin; done asdf update asdf plugin-update --all asdf install +for plugin in $(cat ~/.tool-versions | awk '{print $1}'); do install_latest $plugin; done echo "* Syncing repositories..." mr -j 5 update