Add theme

This commit is contained in:
Ivan Bushchik 2022-06-06 13:25:34 +03:00
parent 7779b6cd83
commit e860d1b0e0
No known key found for this signature in database
GPG key ID: 3E4E9C7D66E44BF7

15
ivabus.zsh-theme Normal file
View file

@ -0,0 +1,15 @@
# ivabus zsh prompt theme
__zsh_prompt() {
local prompt_username
prompt_username="@%n"
PROMPT="%{$fg[green]%}${prompt_username} %(?:%{$reset_color%}➜ :%{$fg_bold[red]%}➜ )" # User/exit code arrow
PROMPT+='%{$fg_bold[blue]%}%(5~|%-1~/…/%3~|%4~)%{$reset_color%} ' # cwd
PROMPT+='$(git_prompt_info)' # Git status
PROMPT+='%{$fg[white]%}$ %{$reset_color%}'
unset -f __zsh_prompt
}
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[cyan]%}(%{$fg_bold[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg_bold[yellow]%}✗%{$fg_bold[cyan]%})"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[cyan]%})"
__zsh_prompt