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