21 lines
467 B
Bash
Executable File
21 lines
467 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# shutdown vagrant boxes
|
|
for box in $(vagrant global-status|grep running|awk '{ print $1 }'); do vagrant halt $box; done
|
|
|
|
# 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
|
|
|
|
# kill tmux sessions
|
|
tmux kill-server
|
|
|
|
# quit apps
|
|
osascript -e 'quit app "atom"'
|
|
|
|
# stop services
|
|
brew services stop --all
|
|
|
|
# report repo status
|
|
mr -m status
|