Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 33 lines (30 sloc) 619 Bytes
#!/usr/bin/env zsh
# Usage: a pow link
# Summary: Manage Pow web server
# Help: Available subcommands:
#
# link: symlink current directory into ~/.pow
# unlink: remove symlink to current directory from ~/.pow
#
# Provide a completions
if [ "$1" = "--complete" ]; then
echo "link"
echo "unlink"
exit
fi
case "$1" in
link)
name=`basename $PWD`
rm ~/.pow/$name
ln -s $PWD ~/.pow/$name
echo "Created pow rails app at: http://$name.dev"
;;
unlink)
name=`basename $PWD`
rm ~/.pow/$name
;;
*)
echo "Unrecognized options $@."
echo "Use one of link, unlink"
exit 1
esac
Something went wrong with that request. Please try again.