mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +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() {
|
rvm_prompt_status() {
|
||||||
if [ "" -ne "$(rvm-prompt i v g)" ]; then
|
if [ -f "$(which rvm-prompt)"]; then
|
||||||
echo "<"$(rvm-prompt i v g)">"
|
if [ "" -ne "$(rvm-prompt i v g)" ]; then
|
||||||
|
echo "<"$(rvm-prompt i v g)">"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue