2020-11-02 20:07:39 -05:00
|
|
|
#!/bin/bash
|
2014-07-17 18:34:22 -04:00
|
|
|
|
2018-10-26 10:25:13 -04:00
|
|
|
function install_latest() {
|
2019-09-09 20:35:46 -04:00
|
|
|
version=$(asdf list-all $1 | grep -v '[a-z]' | tail -1)
|
2018-10-26 10:25:13 -04:00
|
|
|
asdf install $1 $version
|
|
|
|
asdf global $1 $version
|
|
|
|
}
|
|
|
|
|
2018-10-23 09:52:11 -04:00
|
|
|
echo "* Updating homesick..."
|
2017-07-30 12:05:21 -04:00
|
|
|
homesick pull
|
2017-03-29 00:24:54 -04:00
|
|
|
homesick symlink
|
|
|
|
|
2020-11-02 20:07:39 -05:00
|
|
|
case "$OSTYPE" in
|
|
|
|
darwin*)
|
|
|
|
echo "* Restoring mackup..."
|
|
|
|
mackup restore
|
|
|
|
|
|
|
|
echo "* Homebrew updates..."
|
|
|
|
brew bundle --global --no-lock
|
|
|
|
brew upgrade
|
|
|
|
|
|
|
|
echo "* Upgrading mac app store apps..."
|
|
|
|
mas upgrade
|
|
|
|
;;
|
|
|
|
linux*)
|
|
|
|
sudo apt update && sudo apt upgrade
|
|
|
|
sudo snap refresh
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
2016-09-26 09:24:31 -04:00
|
|
|
|
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"
|
2018-10-26 10:25:13 -04:00
|
|
|
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
|
2018-10-26 10:25:13 -04:00
|
|
|
for plugin in $(cat ~/.tool-versions | awk '{print $1}'); do install_latest $plugin; done
|
2017-07-30 12:05:21 -04:00
|
|
|
|
2018-10-23 09:52:11 -04:00
|
|
|
echo "* Syncing repositories..."
|
2016-09-26 09:24:31 -04:00
|
|
|
mr -j 5 update
|
2017-07-14 16:48:48 -04:00
|
|
|
|
2018-10-23 09:52:11 -04:00
|
|
|
echo "* Upgrading oh-my-zsh..."
|
|
|
|
cd ~/.oh-my-zsh
|
|
|
|
git pull --rebase --stat origin master
|