Skip to content

Instantly share code, notes, and snippets.

@brianswisher
Created April 23, 2012 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianswisher/2474373 to your computer and use it in GitHub Desktop.
Save brianswisher/2474373 to your computer and use it in GitHub Desktop.
profile addon from node prototype demo
function app {
if [ -z "$2" ]
then
appbranch=main;
else
appbranch=$2;
fi
webapp=$1WebApp;
builddir=/p4/phoenix/$appbranch/build;
appdir=/p4/phoenix/$appbranch/phoenixApp/$webapp;
alias compile="cd $builddir; ./ant scss -DcontextApp=$webapp";
alias watch="cd $builddir; ./ant scss -DcontextApp=$webapp -Dmode=watch";
alias proto="cd $appdir; node node/app.js";
alias edit="cd $appdir; subl .";
cd $appdir;
echo "Switched context to '$appbranch $webapp'.";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment