mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Add error code to prompt.
This commit is contained in:
parent
1d491960fb
commit
867f25110c
1 changed files with 2 additions and 1 deletions
|
|
@ -8,5 +8,6 @@ ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|||
PROMPT='%~%{$reset_color%}$(git_prompt_info) ★ %{$reset_color%}'
|
||||
|
||||
if which rbenv &> /dev/null; then
|
||||
RPROMPT='%{$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
|
||||
RPROMPT='%(?..%{$fg[white]%}%?%{$fg[red]%}⚡)%{$reset_color%} $ruby'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue