Skip to content

Instantly share code, notes, and snippets.

@mithrandi
Created Mar 31, 2014
Embed
What would you like to do?
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