Skip to content

Instantly share code, notes, and snippets.

@krohrbaugh
Created May 8, 2010 17:42
Show Gist options
  • Save krohrbaugh/394675 to your computer and use it in GitHub Desktop.
Save krohrbaugh/394675 to your computer and use it in GitHub Desktop.
export PATH="~/bin:/usr/local/bin:/usr/local/sbin/:/opt/local/bin:/opt/local/sbin:$PATH"
# prompt display data
function rvm_selected_ruby {
rb=$(~/.rvm/bin/rvm-prompt)
case "$rb" in
"system" )
return
;;
* )
echo "[$rb] "
;;
esac
}
function git_current_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo " ("${ref#refs/heads/}")"
}
# bash settings
export PS1="\$(rvm_selected_ruby)\w\$(git_current_branch)$ "
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
# rvm settings
if [[ -s /Users/krohrbaugh/.rvm/scripts/rvm ]] ; then source /Users/krohrbaugh/.rvm/scripts/rvm ; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment