cleanup goodmorning/night scripts

This commit is contained in:
James Walker 2018-10-23 09:52:11 -04:00
parent 1426f03234
commit e530228366
Signed by: walkah
GPG Key ID: 3C127179D6086E93
2 changed files with 21 additions and 20 deletions

View File

@ -1,27 +1,28 @@
#!/bin/sh
# system setup
# sudo chef-client
# homesick
echo "* Updating homesick..."
homesick pull
homesick symlink
# mackup
echo "* Restoring mackup..."
mackup restore
# upgrade homebrew
echo "* Homebrew updates..."
brew bundle --global
brew upgrade
brew cleanup
# asdf
echo "* Upgrading mac app store apps..."
mas upgrade
echo "* asdf update..."
asdf update
asdf plugin-update --all
asdf install
# update all repositories
echo "* Syncing repositories..."
mr -j 5 update
# upgrade app store apps
mas upgrade
echo "* Upgrading oh-my-zsh..."
cd ~/.oh-my-zsh
git pull --rebase --stat origin master

View File

@ -1,20 +1,20 @@
#!/bin/sh
# shutdown vagrant boxes
echo "* Shutdown vagrant..."
for box in $(vagrant global-status|grep running|awk '{ print $1 }'); do vagrant halt $box; done
# shutdown docker machines
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
# kill tmux sessions
tmux kill-server
# quit apps
osascript -e 'quit app "atom"'
# stop services
echo "* Stop running services..."
brew services stop --all
# report repo status
echo "* Kill tmux sessions..."
tmux kill-server
echo "* Uncommitted projects..."
mr -m status
echo "* Homesick status..."
homesick status