My .bashrc

The contents of my bash configuration file:

# My custom prompt with git branch in it
PS1="[\u@derby \W:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)]# "

# Use hub, it's cool
alias git=hub

# PHP installed with brew likes this
export PATH="$(brew --prefix php55)/bin:$PATH:~/bin:/usr/local/sbin"

# Just let merges happen without asking for a message
export GIT_MERGE_AUTOEDIT=no

# Sendup, our CDN upload tool for migrations, needs this
export RACKSPACE_USERNAME=a-name-goes-here
export RACKSPACE_APIKEY=a-key-goes-here

# This fixed some horrible bug I forget
export LC_CTYPE=C
export LANG=C

# Git command aliases for quicker typing
alias g='git status'
alias ga='git add . -A'
alias gb='git branch'
alias gc='git commit'
alias gcc='git commit . -m'
alias gd='git diff'
alias gdt='git difftool'
alias gp='git pull'
alias gps='git push'
alias gl='git log'
alias gra='git remote add'
alias grm='git remote rm'
alias grr='git reset'
alias gk='git checkout'
alias gcp='git cherry-pick'
alias gxs='git flow hotfix start'
alias gxf='git flow hotfix finish'
alias gfs='git flow feature start'
alias gff='git flow feature finish'
alias gs='git stash'
alias gsp='git stash pop'
alias gf='git fetch'
alias gft='git fetch --tags'

Comments