2011-06-01 08:48:26 +02:00
|
|
|
# Get the name of the current branch.
|
2010-05-19 08:53:16 +02:00
|
|
|
function rvm_prompt_info() {
|
2011-06-01 08:48:26 +02:00
|
|
|
local ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null)
|
|
|
|
if [[ -n "$ruby_version" ]]; then
|
|
|
|
echo "($ruby_version)"
|
|
|
|
fi
|
2010-05-19 08:53:16 +02:00
|
|
|
}
|
|
|
|
|