mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
check for existence of rvm-prompt before running it.
This commit is contained in:
parent
6e4243eb88
commit
5c63939c0b
1 changed files with 4 additions and 2 deletions
|
|
@ -10,8 +10,10 @@ svn_prompt_status() {
|
|||
}
|
||||
|
||||
rvm_prompt_status() {
|
||||
if [ "" -ne "$(rvm-prompt i v g)" ]; then
|
||||
echo "<"$(rvm-prompt i v g)">"
|
||||
if [ -f "$(which rvm-prompt)"]; then
|
||||
if [ "" -ne "$(rvm-prompt i v g)" ]; then
|
||||
echo "<"$(rvm-prompt i v g)">"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue