simple scripts I use to start and end my day

This commit is contained in:
James Walker 2014-07-17 18:34:22 -04:00
parent 5ccdbaad11
commit bb528cbcd4
2 changed files with 29 additions and 0 deletions

12
home/bin/goodmorning.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
# system setup
chef-client
rvm gemset reset_env # rvm cookbook breaks this
brew upgrade
brew cleanup
for cask in $(brew cask list); do brew cask install $cask; done
brew cask cleanup
open $(mdfind Emacs.app)

17
home/bin/goodnight.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
# shutdown vagrant boxes
for box in $(vagrant global-status|grep running|awk '{ print $1 }'); do vagrant halt $box; done
# kill tmux sessions
tmux kill-server
# quit apps
osascript -e 'tell application "emacs" to quit'
osascript -e 'tell application "textual" to quit'
osascript -e 'tell application "adium" to quit'
osascript -e 'tell application "flowdock" to quit'
osascript -e 'tell application "skype" to quit'
osascript -e 'tell application "slack" to quit'
uncommitted ~/Projects ~/.homesick