Skip to content

Instantly share code, notes, and snippets.

@mattyohe
Created March 30, 2012 18:53
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 mattyohe/2253999 to your computer and use it in GitHub Desktop.
Save mattyohe/2253999 to your computer and use it in GitHub Desktop.
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
# make ls display colors, reinforce with CLICOLOR and LSCOLORS
export CLICOLOR=1
# LSCOLORS order: DIR, SYM_LINK, SOCKET, PIPE, EXE, BLOCK_SP
# CHAR_SP, EXE_SUID, EXE_GUID, DIR_STICKY, DIR_WO_STICKY
# a = black, b = red, c = green, d = brown, e = blue,
# f = magenta g = cyan, h = light gray, x = default
# lowercase is bold
export LSCOLORS=gxex
# Set git autocompletion and PS1 integration
if [ -f /usr/local/etc/bash_completion.d/git-completion.bash ]; then
. /usr/local/etc/bash_completion.d/git-completion.bash
fi
GIT_PS1_SHOWDIRTYSTATE=true
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
PS1='\[\033[01;32m\]\u@\h\[\033[00m\][\@]\[\033[01;31m\]\w\[\033[00m\]$(__git_ps1 " <%s>")\n\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment