mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Adds clever rrprompt (independant of ruby version manager, if any)
This commit is contained in:
parent
9be79f548a
commit
33c7b7c32f
1 changed files with 2 additions and 7 deletions
|
|
@ -23,10 +23,5 @@ PROMPT='%B%F{blue}%c%B%F{green}${vcs_info_msg_0_}%B%F{magenta} %{$reset_color%}%
|
|||
autoload -U add-zsh-hook
|
||||
add-zsh-hook precmd theme_precmd
|
||||
|
||||
if [ -e ~/.rvm/bin/rvm-prompt ]; then
|
||||
RPROMPT='%{$reset_color%} %{$fg[red]%}$(~/.rvm/bin/rvm-prompt i v g) %{$reset_color%}'
|
||||
else
|
||||
if which rbenv &> /dev/null; then
|
||||
RPROMPT='%{$reset_color%} %{$fg[red]%}$(rbenv version | sed -e "s/ (set.*$//") %{$reset_color%}'
|
||||
fi
|
||||
fi
|
||||
RPROMPT='%{$reset_color%} %{$fg[red]%}$(ruby -e "puts \"#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}\"") %{$reset_color%}'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue