mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
[URL theme] Display exit status when previous command failed
This commit is contained in:
parent
03c4da9da5
commit
4ff1fa5875
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%}?%{$reset_color%}%{$fg_bold[red]%}git%{$reset_color%}%{$fg_bold[yellow]%}=%{$reset_color%}%{$fg_bold[magenta]%}"
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%}?%{$reset_color%}%{$fg_bold[red]%}git%{$reset_color%}%{$fg_bold[yellow]%}=%{$reset_color%}%{$fg_bold[magenta]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
|
|
||||||
PROMPT='%{$fg_bold[green]%}%n%{$reset_color%}%{$fg_bold[yellow]%}@%{$reset_color%}%{$fg_bold[green]%}%M%{$reset_color%}%{$fg_bold[blue]%}%d%{$reset_color%}$(git_prompt_info)
|
PROMPT='%(0?..%{$fg_bold[yellow]%}[%{$reset_color%}%{$fg_bold[red]%}%?%{$reset_color%}%{$fg_bold[yellow]%}]%{$reset_color%}
|
||||||
|
)%{$fg_bold[green]%}%n%{$reset_color%}%{$fg_bold[yellow]%}@%{$reset_color%}%{$fg_bold[green]%}%M%{$reset_color%}%{$fg_bold[blue]%}%d%{$reset_color%}$(git_prompt_info)
|
||||||
%{$fg_bold[yellow]%}%#%{$reset_color%} '
|
%{$fg_bold[yellow]%}%#%{$reset_color%} '
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue