prezto_config/lib/rvm.zsh

9 lines
197 B
Bash
Raw Normal View History

# Get the name of the current branch.
2010-05-19 08:53:16 +02:00
function rvm_prompt_info() {
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
}