From e860d1b0e0240367793a3bf0dd2d772e781b4339 Mon Sep 17 00:00:00 2001 From: Ivan Bushchik Date: Mon, 6 Jun 2022 13:25:34 +0300 Subject: [PATCH] Add theme --- ivabus.zsh-theme | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ivabus.zsh-theme diff --git a/ivabus.zsh-theme b/ivabus.zsh-theme new file mode 100644 index 0000000..928337b --- /dev/null +++ b/ivabus.zsh-theme @@ -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