From b121d7792f335480f91e7626e78fa0ab1f762ad2 Mon Sep 17 00:00:00 2001 From: Igor Vinokurov Date: Sun, 21 May 2017 01:42:49 +0700 Subject: [PATCH] speed-up, corrected and simplified gentoo theme --- themes/gentoo.zsh-theme | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/themes/gentoo.zsh-theme b/themes/gentoo.zsh-theme index ee205d248..791344096 100644 --- a/themes/gentoo.zsh-theme +++ b/themes/gentoo.zsh-theme @@ -1,8 +1,3 @@ -function prompt_char { - if [ $UID -eq 0 ]; then echo "#"; else echo $; fi -} +PROMPT='%B%(!.%F{red}.%F{green}%n@)%m %F{blue}%1~$(git_prompt_info) %# %f%b' -PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(git_prompt_info)%_$(prompt_char)%{$reset_color%} ' - -ZSH_THEME_GIT_PROMPT_PREFIX="(" -ZSH_THEME_GIT_PROMPT_SUFFIX=") " +ZSH_THEME_GIT_PROMPT_PREFIX=" ("