Skip to content

Instantly share code, notes, and snippets.

@cvan
Created December 17, 2011 19:14
Show Gist options
  • Save cvan/1491093 to your computer and use it in GitHub Desktop.
Save cvan/1491093 to your computer and use it in GitHub Desktop.
zamboni aliases
~/.aliasrc
# Django
alias z='cd ~/Sites/projects/zamboni2 && workon z'
alias zpull='z && git checkout master && git pull && git submodule sync && git submodule update --init --recursive'
alias zup='zpull && ./vendor/src/schematic/schematic migrations'
alias check5="git whatchanged $1 -1 | awk '/^:/ {print $NF}' | xargs /vendor/src/check/check.py"
# Testing
alias testme='manage.py test --noinput -s --logging-clear-handlers'
alias testme='manage.py test --noinput -s --logging-clear-handlers -a\!sphinx --verbosity=2'
alias tm='testme --settings=settings_local_mkt'
alias ta='testme'
~/.gitconfig
[alias]
get = "!f() { echo Merging $1 && git checkout master && git pull && git submodule sync && git submodule update --recursive && git checkout $1 && git rebase master && git checkout master && git merge $1; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment