Commit a7fb6680 authored by Trae Robrock's avatar Trae Robrock
Browse files

Make rvm prompt function a bit cleaner

parent 3d1b788d
# get the name of the branch we are on # get the name of the branch we are on
function rvm_prompt_info() { function rvm_prompt_info() {
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
if [ -z $ruby_version ] [[ ! -z $ruby_version ]] && echo "($ruby_version)"
then
return
fi
echo "($ruby_version)"
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment