mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
my theme
This commit is contained in:
parent
3552423de3
commit
ba9be36eff
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