Skip to content

Instantly share code, notes, and snippets.

@NV
Created August 30, 2013 02:57
Show Gist options
  • Save NV/6385904 to your computer and use it in GitHub Desktop.
Save NV/6385904 to your computer and use it in GitHub Desktop.
Serve current directory at "current-dir-name.dev". Pow!
function serve
set NAME (basename $PWD)
mkdir -p "$HOME/.pow/$NAME"
ln -s $PWD "$HOME/.pow/$NAME/public"
open "http://$NAME.dev"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment