From cd4d2c8163632d2bbb530a131b64a20027ea9d50 Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Fri, 24 Sep 2010 10:56:31 -0400 Subject: [PATCH] themes/prose: Remove prompt_char to make the prompt faster. --- themes/prose.zsh-theme | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/themes/prose.zsh-theme b/themes/prose.zsh-theme index d64a7ab67..9ade9e573 100644 --- a/themes/prose.zsh-theme +++ b/themes/prose.zsh-theme @@ -1,9 +1,3 @@ -function prompt_char { - git branch >/dev/null 2>/dev/null && echo '±' && return - hg root >/dev/null 2>/dev/null && echo '☿' && return - echo '○' -} - function virtualenv_info { [ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') ' } @@ -22,7 +16,7 @@ function box_name { PROMPT=' %{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}$(box_name)%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(hg_prompt_info)$(git_prompt_info) -$(virtualenv_info)$(prompt_char) ' +$(virtualenv_info)$ ' ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"