mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
add z.zsh-theme
This commit is contained in:
parent
d848c94804
commit
c1903e6607
1 changed files with 23 additions and 0 deletions
23
themes/z.zsh-theme
Normal file
23
themes/z.zsh-theme
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#
|
||||
# Z ZSH Theme
|
||||
#
|
||||
|
||||
if [ $UID -eq 0 ]; then
|
||||
PROMPT='%{$fg_bold[red]%}zsh%#%n@%m %{$fg_bold[blue]%}%9~ $(git_prompt_info)
|
||||
% '
|
||||
RPROMPT='%{$fg[white]%}%*%F{228}'
|
||||
else
|
||||
PROMPT='%{$fg[green]%}zsh%#%n@%m %{$fg_bold[blue]%}%9~ $(git_prompt_info)
|
||||
% '
|
||||
RPROMPT='%{$fg[white]%}%*%F{208}'
|
||||
fi
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[white]%}git:%{$fg_bold[white]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg_bold[green]%}"
|
||||
|
||||
ZSH_THEME_SVN_PROMPT_PREFIX="%{$reset_color%}%{$fg[white]%}svn:%{$fg_bold[white]%}/"
|
||||
ZSH_THEME_SVN_PROMPT_SUFFIX="%{$fg_bold[green]%}"
|
||||
|
||||
preexec(){
|
||||
echo -ne "\e[0m"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue