Created
December 16, 2014 20:44
-
-
Save 1stevengrant/8a06f6706cdd067017cb 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
ulimit -n 4096 | |
export PATH="/usr/local/mysql/bin:$PATH" | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
PS1="\[\e[01;31m\]\w \$(parse_git_branch): \[\e[00m\]" | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
alias ga='git add' | |
alias gp='git push' | |
alias gl='git log' | |
alias gs='git status' | |
alias gd='git diff' | |
alias gm='git commit -m' | |
alias gma='git commit -am' | |
alias gb='git branch' | |
alias gc='git checkout' | |
alias gra='git remote add' | |
alias grr='git remote rm' | |
alias gpu='git pull' | |
alias gcl='git clone' | |
complete -o default -o nospace -F _git_branch gb | |
complete -o default -o nospace -F _git_checkout gc | |
green=$(tput setaf 2) | |
blue=$(tput setaf 4) | |
bold=$(tput bold) | |
red=$(tput setaf 1) | |
reset=$(tput sgr0) | |
#PS1='\u@\[$green\]\h\[$reset\]:\w\[$blue\]$(__git_ps1)\[$reset\] \$ ' | |
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
export PATH=~/.composer/vendor/bin:$PATH | |
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/X11/lib/pkgconfigexport PATH=/usr/local/sbin:$PATH | |
export PATH=/usr/local/bin:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment