# 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