Skip to content

Instantly share code, notes, and snippets.

@FabricioFFC
Created March 5, 2011 18:59
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 FabricioFFC/856616 to your computer and use it in GitHub Desktop.
Save FabricioFFC/856616 to your computer and use it in GitHub Desktop.
.bashrc - extra configuration
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
function rvm_version {
RVM_VERSION=`~/.rvm/bin/rvm-prompt`
if [[ -f "$(pwd)/Rakefile" ]] && [[ ! -z "$RVM_VERSION" ]]; then
echo "${RVM_VERSION} "
fi
}
if [[ -s ~/.rvm/scripts/rvm ]]
then
source ~/.rvm/scripts/rvm
source ~/.rvm/scripts/completion
rvm reload
fi
PS1='$(rvm_version) \n[\u] \[\033[1;33m\]\w\a\[\033[0m\]$(__git_ps1 " \[\033[1;32m\](%s)\[\033[0m\]")\n\$ '
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment