Skip to content

Instantly share code, notes, and snippets.

@cvan
Created June 11, 2011 22:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cvan/1021020 to your computer and use it in GitHub Desktop.
Save cvan/1021020 to your computer and use it in GitHub Desktop.
zamboni aliases
export ZAMBONI_PATH=~/Sites/projects/zamboni
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_ps1 " (%s)")\$ '
source /usr/local/etc/bash_completion.d/git-completion.bash
export WORKON_HOME=$HOME/.virtualenvs
source $HOME/.virtualenvwrapper
z() {
cd $ZAMBONI_PATH
workon zamboni
}
zup() {
z
echo "Updating master ..."
git checkout master && git pull && git submodule update --init
echo "Updating vendor ..."
pushd vendor && git pull && git submodule update --init && popd
echo "Running migrations ..."
./vendor/src/schematic/schematic migrations
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment