mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
check for existence of rvm-prompt before using it
This commit is contained in:
parent
eafd5f3252
commit
b8373a7372
1 changed files with 5 additions and 1 deletions
|
|
@ -95,5 +95,9 @@ function steeef_precmd {
|
|||
}
|
||||
add-zsh-hook precmd steeef_precmd
|
||||
|
||||
if [ command -v rvm-prompt >/dev/null 2>&1 ]; then
|
||||
RVM=$(rvm-prompt " with%{$fg[red]%} " v g "%{$reset_color%}")
|
||||
fi
|
||||
|
||||
PROMPT=$'
|
||||
%{$purple%}%n%{$reset_color%} in %{$limegreen%}%~%{$reset_color%}$(rvm-prompt " with%{$fg[red]%} " v g "%{$reset_color%}")$vcs_info_msg_0_%{$orange%} λ%{$reset_color%} '
|
||||
%{$purple%}%n%{$reset_color%} in %{$limegreen%}%~%{$reset_color%}$RVM$vcs_info_msg_0_%{$orange%} λ%{$reset_color%} '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue