mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Only show RVM code if not using system Rails -personal pref
This commit is contained in:
parent
3969b91508
commit
18dbdc3e73
1 changed files with 3 additions and 1 deletions
|
|
@ -1,7 +1,9 @@
|
||||||
# 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 [ -n "$ruby_version" ]; then
|
||||||
echo "($ruby_version)"
|
echo "($ruby_version)"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue