提交 c5a89058 编写于 作者: R Robby Russell

Merge pull request #1330 from trobrock/hide-rvm-prompt

Don't show empty parens if you are using your system ruby
# get the name of the branch we are on
function rvm_prompt_info() {
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
echo "($ruby_version)"
[[ ! -z $ruby_version ]] && echo "($ruby_version)"
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册