Skip to content

Instantly share code, notes, and snippets.

@leanucci
Created April 28, 2009 14:42
Show Gist options
  • Save leanucci/103195 to your computer and use it in GitHub Desktop.
Save leanucci/103195 to your computer and use it in GitHub Desktop.
export PATH=$PATH:/usr/local/mysql/bin
export PATH=$PATH:/opt/local/bin
alias gco='git checkout'
alias gba='git branch -a'
alias gca='git commit -a -v'
alias gst='git status'
source ~/.git-completion.bash
complete -o default -o nospace -F _git_checkout gco
# export PS1='\w\[\033[1;33m\] $(__git_ps1 "(%s)")\[\033[0m\]\$ '
P_DEPTH=2
P_HL_LEVELS="2/4"
export EDITOR='mate -w'
export VISUAL=$EDITOR
export SVN_EDITOR=$EDITOR
# TextMate
alias et='mate .'
alias etm='mate app config lib db public spec test .gitignore'
alias ett='mate app config lib db public spec test vendor/plugins Rakefile Capfile README .gitignore'
alias etts='mate app config lib db public script spec test vendor/plugins Rakefile Capfile README .gitignore'
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="\w \[\033[1;33m\]\$(parse_git_branch)\[\033[0m\]$ "
alias t='osascript ~/.scripts/newtab.scpt `pwd`'
alias tt='touch tmp/restart.txt'
alias e='mvim --remote-tab-silent 2>/dev/null'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment