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,9 +10,11 @@ svn_prompt_status() {
|
|||
}
|
||||
|
||||
rvm_prompt_status() {
|
||||
if [ -f "$(which rvm-prompt)"]; then
|
||||
if [ "" -ne "$(rvm-prompt i v g)" ]; then
|
||||
echo "<"$(rvm-prompt i v g)">"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
local user='%{$fg[magenta]%}%n@%{$fg[magenta]%}%m%{$reset_color%}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue