Created
June 18, 2012 18:43
-
-
Save snide/2949946 to your computer and use it in GitHub Desktop.
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
export PATH=/Users/snide/bin:${PATH}:/usr/local/sbin | |
function parse_git_branch { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
export PYTHONDONTWRITEBYTECODE=1 | |
export VIRTUALENV_USE_DISTRIBUTE=1 | |
alias shell="python manage.py shell" | |
export PS1='<\[\033[0;35m\]\h\[\033[0m\]:\[\033[0;33m\]\u\[\033[0m\]:\[\033[1;36m\]\w\[\033[0m\] \[\033[0;35m\]$(parse_git_branch)\[\033[0m\]> ' | |
alias sub='open -a "Sublime Text 2"' | |
alias clean="find . -name '*.pyc' -exec rm -rf {} \;" | |
alias ve="workon whiskey" | |
alias rs="python manage.py runserver" | |
alias fs="foreman start" | |
alias cc="compass compile" | |
alias cw="compass watch" | |
alias ccgb="compass compile -c src/Giantbomb/SiteBundle/Resources/sass/config.rb" | |
alias cwgb="compass watch -c src/Giantbomb/SiteBundle/Resources/sass/config.rb" | |
alias home="cd ~/" | |
alias wy="cd ~/whiskey/" | |
alias cbs="cd ~/cbsi/" | |
alias wyrm="cd ~/cbsi/wyrm" | |
alias cv="cd ~/whiskey/comicvine/" | |
alias cv_rs="cd ~/whiskey/comicvine/comicvine/ && python manage.py runserver" | |
alias av="cd ~/whiskey/animevice/" | |
alias av_rs="cd ~/whiskey/animevice/animevice/ && python manage.py runserver" | |
alias ts="cd ~/whiskey/tested/" | |
alias ts_rs="cd ~/whiskey/tested/tested/ && python manage.py runserver" | |
alias gb="cd ~/cbsi/giantbomb/" | |
alias vines="cd ~/whiskey/vines/" | |
alias ds="cd ~/whiskey/distillery/" | |
alias db="cd ~/cbsi/drawbridge/" | |
alias db_rs="cd ~/cbsi/drawbridge/ && make server" | |
alias pwatch="php app/console assetic:dump --env=dev --watch" | |
alias pclear="php app/console --env=dev cache:clear" | |
alias ph="cd ~/cbsi/phoenix/" | |
alias wa="cd ~/whiskey/whiskeyauth/" | |
alias wa_rs="cd ~/whiskey/whiskeyauth/whiskeyauth/ && python manage.py runserver" | |
alias wm="cd ~/whiskey/whiskeymedia/" | |
alias wm_rs="cd ~/whiskey/whiskeymedia/whiskeymedia/ && python manage.py runserver" | |
alias branch="git branch" | |
alias add="git add" | |
alias pull="git pull" | |
alias push="git push" | |
alias co="git checkout" | |
alias ci="git commit -a" | |
alias mm="git merge master" | |
alias stat="git status" | |
source /usr/local/bin/virtualenvwrapper.sh | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
function gg() { | |
cd ~/cbsi | |
find . \ | |
-mindepth 1 -maxdepth 2 \ | |
-type d -name .git \ | |
| while read git_dir; do | |
dir=`dirname $git_dir` | |
echo $dir: | |
cd $dir | |
git $* | |
cd - >/dev/null | |
echo "" | |
done | |
} | |
function osync() { | |
cd ~/osx_share | |
git pull | |
find . -name '*.pyc' -exec rm -rf {} \; | |
git commit -a -m "$*" | |
git push | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment