Created
March 5, 2011 18:59
-
-
Save FabricioFFC/856616 to your computer and use it in GitHub Desktop.
.bashrc - extra configuration
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
[[ -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