Created
May 10, 2011 18:17
-
-
Save csexton/965032 to your computer and use it in GitHub Desktop.
Zsh function to restart an app running under pow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Restart a rack app running under pow | |
# http://pow.cx/ | |
# | |
# Adds a kapow command that will restart an app | |
# | |
# $ kapow myapp | |
# | |
# Supports command completion. | |
# | |
# If you are not already using completion you might need to enable it with | |
# | |
# autoload -U compinit compinit | |
# | |
kapow(){ | |
touch ~/.pow/$1/tmp/restart.txt; | |
if [ $? -eq 0 ]; then; echo "pow: restarting $1" ; fi | |
} | |
compctl -W ~/.pow -/ kapow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
should have it default to the current dir....