Skip to content

Instantly share code, notes, and snippets.

@rbsgn
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbsgn/942cce40cfed227fb2d5 to your computer and use it in GitHub Desktop.
Save rbsgn/942cce40cfed227fb2d5 to your computer and use it in GitHub Desktop.
Terminal setup
readonly GIT_CORE='/Applications/Xcode.app/Contents/Developer/usr/share/git-core'
readonly GIT_BASH_COMPLETION="$GIT_CORE/git-completion.bash"
readonly GIT_PS1="$GIT_CORE/git-prompt.sh"
[ -f "$GIT_BASH_COMPLETION" ] && source "$GIT_BASH_COMPLETION"
if [ -f "$GIT_PS1" ] ; then
source "$GIT_PS1"
export PS1='[\A] $(tput setaf 2)\u$(tput sgr0):\w$(tput setaf 1)$(__git_ps1 " (%s)")$(tput sgr0) $ '
else
export PS1="[\A] $(tput setaf 2)\u$(tput sgr0):\w $ "
fi
alias grep='grep --color=always'
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export CLICOLOR=1
export GREP_COLOR="1;31"
[ -r $HOME/.bashrc ] && source $HOME/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment