mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
My custom theme
This commit is contained in:
parent
164648ce2b
commit
74b31b8f7b
1 changed files with 13 additions and 0 deletions
13
themes/sankara.zsh-theme
Normal file
13
themes/sankara.zsh-theme
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
|
||||
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||
|
||||
PROMPT='%{$fg[$NCOLOR]%}%n%{$fg[green]%}@%m%{$reset_color%} %~ \
|
||||
%{$fg[red]%}%(!.#.»)%{$reset_color%} '
|
||||
RPROMPT='%{$fg[red]%}«%{$reset_color%} $(git_prompt_info) %F{blue} %F{green}%D{%L:%M} %F{yellow}%D{%p}%f'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[yellow]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="⚡"
|
||||
|
||||
export GREP_COLOR='1;35'
|
||||
Loading…
Add table
Add a link
Reference in a new issue