Created
March 31, 2014 12:53
-
-
Save mithrandi/9891643 to your computer and use it in GitHub Desktop.
axiomatic smart launch script
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
#!/bin/zsh | |
source /Users/mithrandi/Library/Python/2.7/bin/virtualenvwrapper_lazy.sh | |
workon Fusion | |
BRANCH=$(hg branch --repository $HOME/code/Fusion) | |
STORE="dev.axiom.$BRANCH" | |
if [[ ! -d $STORE ]] { | |
if [[ -e $STORE ]] { | |
echo "Found unexpected $STORE, exiting." | |
exit 1 | |
} | |
echo "Creating $STORE..." | |
cp -a dev.axiom.default $STORE | |
} | |
axiomatic -d $STORE "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment