dotfiles/home/bin/goodnight.sh

20 lines
498 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
osascript -e 'quit app "emacs"'
2015-08-13 17:17:28 -04:00
osascript -e 'quit app "github desktop"'
2015-07-22 10:24:08 -04:00
osascript -e 'quit app "atom"'
# report repo status
mr -m status