Skip to content

Instantly share code, notes, and snippets.

@csexton
Created May 10, 2011 18:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save csexton/965032 to your computer and use it in GitHub Desktop.
Save csexton/965032 to your computer and use it in GitHub Desktop.
Zsh function to restart an app running under pow
# 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
@caryfitzhugh
Copy link

should have it default to the current dir....

@scottwater
Copy link

@caryfitzhugh check out https://gist.github.com/969974. It should default to the current directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment