Created
August 30, 2013 02:57
-
-
Save NV/6385904 to your computer and use it in GitHub Desktop.
Serve current directory at "current-dir-name.dev". Pow!
This file contains 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
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