Skip to content

Instantly share code, notes, and snippets.

@callumlocke
Forked from kavanagh/job.sh
Last active December 18, 2015 21:39
Show Gist options
  • Save callumlocke/5849176 to your computer and use it in GitHub Desktop.
Save callumlocke/5849176 to your computer and use it in GitHub Desktop.
function job() {
if [[ -z "$1" ]]; then
echo "You must specify a project name!"
return;
fi
mkdir $1 && cd $1 \
&& yo ig-job \
&& subl . && subl ./app/scripts/main.js && subl ./app/scripts/config.js \
&& osascript -e 'tell application "Terminal" to activate' \
-e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' \
-e 'tell application "Terminal" to do script "cd '$PWD' && testem" in selected tab of the front window' \
&& grunt server;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment