mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
added custom theme
This commit is contained in:
parent
4fec0a46e7
commit
f996920e5c
1 changed files with 23 additions and 0 deletions
23
themes/aethereternity.zsh-theme
Normal file
23
themes/aethereternity.zsh-theme
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# https://github.com/robbyrussell/oh-my-zsh/wiki/themes
|
||||
# based on nerbirhos theme and default kali linux bash
|
||||
# choose between # and $
|
||||
function prompt_char {
|
||||
if [ $UID -eq 0 ]; then echo "#"; else echo $; fi
|
||||
}
|
||||
|
||||
# choose color of user@host
|
||||
local user_color='green'; [ $UID -eq 0 ] && user_color='red'
|
||||
|
||||
HOST_PROMPT_="%{$fg_bold[$user_color]%}$USER@$HOST%{$reset_color%}%{$fg[white]%}:%{$fg_bold[blue]%}%~"
|
||||
|
||||
GIT_PROMPT="%{$fg_bold[cyan]%}\$(git_prompt_info)%{$fg_bold[cyan]%} % %{$reset_color%}"
|
||||
|
||||
# end with # or $
|
||||
CHAR_PROMPT="%{$fg[white]%}$(prompt_char)%{$reset_color%} "
|
||||
|
||||
PROMPT="$HOST_PROMPT_$GIT_PROMPT_$CHAR_PROMPT"
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||
Loading…
Add table
Add a link
Reference in a new issue