🔧 sync static configs with nix

This commit is contained in:
2024-07-29 11:48:49 -04:00
parent 82cbe6a16b
commit c328c8962c
8 changed files with 94 additions and 92 deletions

View File

@ -6,15 +6,8 @@ function install_latest() {
asdf global $1 $version
}
echo "* Updating homesick..."
homesick pull
homesick symlink
case "$OSTYPE" in
darwin*)
echo "* Restoring mackup..."
mackup restore
echo "* Homebrew updates..."
brew bundle --global --no-lock
brew upgrade
@ -23,9 +16,7 @@ case "$OSTYPE" in
mas upgrade
;;
linux*)
sudo apt update && sudo apt upgrade
sudo snap refresh
sudo apt update && sudo apt upgrade
;;
esac
@ -40,7 +31,7 @@ asdf install
for plugin in $(cat ~/.tool-versions | awk '{print $1}'); do install_latest $plugin; done
echo "* Syncing repositories..."
mr -j 5 update
mr -j 8 update
echo "* Upgrading oh-my-zsh..."
cd ~/.oh-my-zsh

View File

@ -1,8 +1,5 @@
#!/bin/sh
echo "* Shutdown vagrant..."
for box in $(vagrant global-status|grep running|awk '{ print $1 }'); do vagrant halt $box; done
echo "* Shutdown docker..."
# for machine in $(docker-machine ls -q); do docker-machine stop $machine; done
for container in $(docker ps -a -q); do docker stop $container; done
@ -11,11 +8,6 @@ docker system prune -f
echo "* Stop running services..."
brew services stop --all
echo "* Kill tmux sessions..."
tmux kill-server
echo "* Uncommitted projects..."
mr -m status
echo "* Homesick status..."
homesick status