dotfiles/home/bin/goodnight.sh

21 lines
513 B
Bash
Raw Normal View History

#!/bin/sh
2018-10-23 09:52:11 -04:00
echo "* Shutdown vagrant..."
for box in $(vagrant global-status|grep running|awk '{ print $1 }'); do vagrant halt $box; done
2018-10-23 09:52:11 -04:00
echo "* Shutdown docker..."
2016-01-16 15:17:31 -05:00
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
2018-10-23 09:52:11 -04:00
echo "* Stop running services..."
brew services stop --all
2018-10-23 09:52:11 -04:00
echo "* Kill tmux sessions..."
tmux kill-server
echo "* Uncommitted projects..."
mr -m status
2018-10-23 09:52:11 -04:00
echo "* Homesick status..."
homesick status