Handle systems without rvm [Close #130]
This commit is contained in:
parent
e51f19809d
commit
7079ae1432
@ -13,9 +13,11 @@
|
|||||||
# Yan Pritzker <yan@pritzker.ws>
|
# Yan Pritzker <yan@pritzker.ws>
|
||||||
|
|
||||||
function rvm_info_for_prompt {
|
function rvm_info_for_prompt {
|
||||||
ruby_version=$(~/.rvm/bin/rvm-prompt)
|
if [[ -d ~/.rvm/ ]]; then
|
||||||
if [ -n "$ruby_version" ]; then
|
ruby_version=$(~/.rvm/bin/rvm-prompt)
|
||||||
echo "[$ruby_version]"
|
if [ -n "$ruby_version" ]; then
|
||||||
|
echo "[$ruby_version]"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user