Created
March 11, 2013 12:59
-
-
Save germs12/5134063 to your computer and use it in GitHub Desktop.
Mac OS X .bash_profile for my Retina Display Mac (2013)
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=/usr/local/bin:~/bin:/usr/local/sbin:$PATH | |
# Source out a git sh file to get access to __git_ps1 | |
source ~/.git-prompt.sh | |
# git commamands simplified | |
alias gst='git status' | |
alias gco='git checkout' | |
alias gci='git commit' | |
alias grb='git rebase' | |
alias gbr='git branch' | |
alias gpl='git pull' | |
alias gpu='git push' | |
alias gad='git add -A' | |
alias gmt='git mergetool' | |
alias bdf='git diff' | |
alias glg='git log --date-order --all --graph --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ar%Creset %C(red bold)%d%Creset%s"' | |
alias glg2='git log --date-order --all --graph --name-status --format="%C(green)%H%Creset %C(yellow)%an%Creset %C(blue bold)%ar%Creset %C(red bold)%d%Creset%s"' | |
# git bash auto complete | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
# Add color and options to ls | |
alias ls='ls -lGFhs' | |
export JAVA_HOME=/Library/Java/Home | |
export EDITOR='subl -w' | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
# Show clean/dirty state for Git in prompt | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
# Change prompt | |
PS1_OLD=${PS1} | |
export PS1='\[\033[1;34m\]\!\[\033[0m\] \[\033[1;35m\]\u\[\033[0m\]:\[\033[1;35m\]\W\[\033[0m\] \[\033[1;92m\]$(__git_ps1 "(%s)")\[\033[0m\]$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment