mirror of
https://github.com/ivabus/ivabus-zsh-theme
synced 2024-12-04 22:15:06 +03:00
Add theme
This commit is contained in:
parent
7779b6cd83
commit
e860d1b0e0
1 changed files with 15 additions and 0 deletions
15
ivabus.zsh-theme
Normal file
15
ivabus.zsh-theme
Normal 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
|
Loading…
Reference in a new issue