cleanup goodmorning/night scripts
This commit is contained in:
parent
1426f03234
commit
e530228366
@ -1,27 +1,28 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# system setup
|
echo "* Updating homesick..."
|
||||||
# sudo chef-client
|
|
||||||
|
|
||||||
# homesick
|
|
||||||
homesick pull
|
homesick pull
|
||||||
homesick symlink
|
homesick symlink
|
||||||
|
|
||||||
# mackup
|
echo "* Restoring mackup..."
|
||||||
mackup restore
|
mackup restore
|
||||||
|
|
||||||
# upgrade homebrew
|
echo "* Homebrew updates..."
|
||||||
brew bundle --global
|
brew bundle --global
|
||||||
brew upgrade
|
brew upgrade
|
||||||
brew cleanup
|
brew cleanup
|
||||||
|
|
||||||
# asdf
|
echo "* Upgrading mac app store apps..."
|
||||||
|
mas upgrade
|
||||||
|
|
||||||
|
echo "* asdf update..."
|
||||||
asdf update
|
asdf update
|
||||||
asdf plugin-update --all
|
asdf plugin-update --all
|
||||||
asdf install
|
asdf install
|
||||||
|
|
||||||
# update all repositories
|
echo "* Syncing repositories..."
|
||||||
mr -j 5 update
|
mr -j 5 update
|
||||||
|
|
||||||
# upgrade app store apps
|
echo "* Upgrading oh-my-zsh..."
|
||||||
mas upgrade
|
cd ~/.oh-my-zsh
|
||||||
|
git pull --rebase --stat origin master
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# shutdown vagrant boxes
|
echo "* Shutdown vagrant..."
|
||||||
for box in $(vagrant global-status|grep running|awk '{ print $1 }'); do vagrant halt $box; done
|
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 machine in $(docker-machine ls -q); do docker-machine stop $machine; done
|
||||||
for container in $(docker ps -a -q); do docker stop $container; done
|
for container in $(docker ps -a -q); do docker stop $container; done
|
||||||
|
|
||||||
# kill tmux sessions
|
echo "* Stop running services..."
|
||||||
tmux kill-server
|
|
||||||
|
|
||||||
# quit apps
|
|
||||||
osascript -e 'quit app "atom"'
|
|
||||||
|
|
||||||
# stop services
|
|
||||||
brew services stop --all
|
brew services stop --all
|
||||||
|
|
||||||
# report repo status
|
echo "* Kill tmux sessions..."
|
||||||
|
tmux kill-server
|
||||||
|
|
||||||
|
echo "* Uncommitted projects..."
|
||||||
mr -m status
|
mr -m status
|
||||||
|
|
||||||
|
echo "* Homesick status..."
|
||||||
|
homesick status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user