Skip to content

Instantly share code, notes, and snippets.

@mithrandi
Created March 31, 2014 12:53
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 mithrandi/9891643 to your computer and use it in GitHub Desktop.
Save mithrandi/9891643 to your computer and use it in GitHub Desktop.
axiomatic smart launch script
#!/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