dotfiles/config/bin/goodmorning.sh

39 lines
844 B
Bash
Raw Normal View History

2020-11-02 20:07:39 -05:00
#!/bin/bash
function install_latest() {
2019-09-09 20:35:46 -04:00
version=$(asdf list-all $1 | grep -v '[a-z]' | tail -1)
asdf install $1 $version
asdf global $1 $version
}
2020-11-02 20:07:39 -05:00
case "$OSTYPE" in
darwin*)
echo "* Homebrew updates..."
brew bundle --global --no-lock
brew upgrade
echo "* Upgrading mac app store apps..."
mas upgrade
;;
linux*)
2024-07-29 11:48:49 -04:00
sudo apt update && sudo apt upgrade
2020-11-02 20:07:39 -05:00
;;
esac
2017-03-29 09:45:09 -04:00
2018-10-23 09:52:11 -04:00
echo "* asdf update..."
2018-11-07 15:31:44 -05:00
export R_CONFIGURE_OPTIONS="--with-x=no"
for plugin in $(cat ~/.tool-versions | awk '{print $1}'); do asdf plugin-add $plugin; done
2018-10-21 23:08:33 -04:00
asdf update
asdf plugin-update --all
asdf install
for plugin in $(cat ~/.tool-versions | awk '{print $1}'); do install_latest $plugin; done
2018-10-23 09:52:11 -04:00
echo "* Syncing repositories..."
2024-07-29 11:48:49 -04:00
mr -j 8 update
2018-10-23 09:52:11 -04:00
echo "* Upgrading oh-my-zsh..."
cd ~/.oh-my-zsh
git pull --rebase --stat origin master