mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Smasty theme
This commit is contained in:
parent
1120f97305
commit
d481042d2d
1 changed files with 11 additions and 0 deletions
11
themes/smasty.zsh-theme
Normal file
11
themes/smasty.zsh-theme
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
if [ $UID -eq 0 ]; then CARETCOLOR="red"; else CARETCOLOR="white"; fi
|
||||
|
||||
local return_code="%(?..%{$fg[red]%}[#%?]%{$reset_color%})"
|
||||
|
||||
PS1='%{$reset_color%}%6~$(git_prompt_info)%{${fg[$CARETCOLOR]}%}${return_code}$%{${reset_color}%} '
|
||||
|
||||
RPS1='[%*]'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}@"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}‡ "
|
||||
Loading…
Add table
Add a link
Reference in a new issue