mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Fixed RPROMPT: RVM version is not updated
This commit is contained in:
parent
97c5191192
commit
d1ccc6375e
1 changed files with 3 additions and 3 deletions
|
|
@ -34,8 +34,8 @@ ZSH_THEME_GIT_PROMPT_SHA_AFTER="%{$reset_color%}]"
|
|||
local username="%{$fg_bold[green]%}%n%{$reset_color%}"
|
||||
local hostname="%{$fg_bold[magenta]%}%m%{$reset_color%}"
|
||||
local current_dir="%{$fg_bold[blue]%}%~%{$reset_color%}"
|
||||
local cmd_status="%(?,%{$fg[green]%}☺%{$reset_color%},%{$fg[red]%}☹%{$reset_color%})"
|
||||
local rvm_config=$(~/.rvm/bin/rvm-prompt)
|
||||
local cmd_status="%(?,%{$fg_bold[green]%}☺%{$reset_color%},%{$fg_bold[red]%}☹%{$reset_color%})"
|
||||
|
||||
|
||||
# Left prompt: username@hostname:current_directory
|
||||
PROMPT='
|
||||
|
|
@ -44,4 +44,4 @@ ${cmd_status} '
|
|||
|
||||
|
||||
# Right prompt when in a git repo: rvm_config ±‹branch_name clean_or_dirty› status(ahead) [short_sha]
|
||||
RPROMPT='${rvm_config} $(git_prompt_info)$(git_prompt_status)$(git_prompt_ahead)$(git_prompt_short_sha)'
|
||||
RPROMPT='$(~/.rvm/bin/rvm-prompt) $(git_prompt_info)$(git_prompt_status)$(git_prompt_ahead)$(git_prompt_short_sha)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue