Skip to content

Instantly share code, notes, and snippets.

@teeerevor
Created December 9, 2011 01:02
Show Gist options
  • Save teeerevor/1449589 to your computer and use it in GitHub Desktop.
Save teeerevor/1449589 to your computer and use it in GitHub Desktop.
profile
function parse_git_branch {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="\w \$(parse_git_branch)\$ "
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
alias gst='git status'
alias gpl='git pull'
alias gplo='git pull origin'
alias gplom='git pull origin master'
alias gph='git push'
alias gpho='git push origin'
alias gphom='git push origin master'
alias gdf='git diff | mate'
alias gcm='git commit -v -m'
alias gca='git commit -v -a -m'
alias gcamd='git commit --amend'
alias gb='git branch'
alias gba='git branch -a'
alias gbD='git branch -D'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gad='git add'
alias grb='git rebase'
alias grm='git rm'
alias gmg='git merge'
alias gr-H='git reset --hard'
alias gl='git log --graph --pretty="format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset"'
alias bex='bundle exec'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment