cleanup goodmorning/night scripts
This commit is contained in:
parent
1426f03234
commit
e530228366
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user