mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Merge ba9be36eff into 5667161d49
This commit is contained in:
commit
a24bbc059b
1 changed files with 19 additions and 0 deletions
19
themes/totte.zsh-theme
Normal file
19
themes/totte.zsh-theme
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
if [[ "$USER" = 'root' ]]; then
|
||||
PROMPT=$'%{$fg[black]%}<<< %{$fg[white]%}%n %{$fg[red]%}at %{$fg[white]%}%m %{$fg[red]%}in %{$fg[white]%}%~ $(git_prompt_info)
|
||||
%{$fg[red]%}>>> %{$reset_color%}'
|
||||
RPROMPT=$'%{$fg[black]%}%D{%T}%{$reset_color%}'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}on %{$fg[white]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||
else
|
||||
PROMPT=$'%{$fg[black]%}<<< %{$fg[white]%}%n %{$fg[green]%}at %{$fg[white]%}%m %{$fg[green]%}in %{$fg[white]%}%~ $(git_prompt_info)
|
||||
%{$fg[green]%}>>> %{$reset_color%}'
|
||||
RPROMPT=$'%{$fg[black]%}%D{%T}%{$reset_color%}'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}on %{$fg[white]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue