mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Fix right rprompt.
This commit is contained in:
parent
867f25110c
commit
dfdb3c1f7b
1 changed files with 2 additions and 2 deletions
|
|
@ -8,6 +8,6 @@ ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||||
PROMPT='%~%{$reset_color%}$(git_prompt_info) ★ %{$reset_color%}'
|
PROMPT='%~%{$reset_color%}$(git_prompt_info) ★ %{$reset_color%}'
|
||||||
|
|
||||||
if which rbenv &> /dev/null; then
|
if which rbenv &> /dev/null; then
|
||||||
local ruby="%{$fg[blue]%}$(rbenv version | cut -d " " -f 1 | sed "s/-/ /g")%{$reset_color%}"
|
local ruby='%{$fg[blue]%}$(rbenv version | cut -d " " -f 1 | sed "s/-/ /g")%{$reset_color%}'
|
||||||
fi
|
fi
|
||||||
RPROMPT='%(?..%{$fg[white]%}%?%{$fg[red]%}⚡)%{$reset_color%} $ruby'
|
RPROMPT="%(?..%{$fg[white]%}%?%{$fg[red]%}⚡)%{$reset_color%} ${ruby}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue