dotfiles/home/bin/goodnight.sh

21 lines
467 B
Bash
Raw Normal View History

#!/bin/sh
# shutdown vagrant boxes
for box in $(vagrant global-status|grep running|awk '{ print $1 }'); do vagrant halt $box; done
2016-01-16 15:17:31 -05:00
# shutdown docker machines
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
2016-01-16 15:17:31 -05:00
# kill tmux sessions
tmux kill-server
# quit apps
2015-07-22 10:24:08 -04:00
osascript -e 'quit app "atom"'
# stop services
brew services stop --all
# report repo status
mr -m status