Skip to content

Commit

Permalink
No way to trigger funcition on interpolation. Give up for now
Browse files Browse the repository at this point in the history
  • Loading branch information
caio committed Jul 30, 2012
1 parent cb9db96 commit f24eba3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions themes/errado.zsh-theme
Expand Up @@ -2,15 +2,7 @@


MODE_INDICATOR="%{$fg_bold[cyan]%}--COMMAND--%{$reset_color%}" MODE_INDICATOR="%{$fg_bold[cyan]%}--COMMAND--%{$reset_color%}"


git_branch_color() { ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[magenta]%}"
if test -n "$(git status -s --ignore-submodules=dirty 2>/dev/null)"; then
echo -n "%{$fg[red]%}"
else
echo -n "%{$fg[green]%}"
fi
}

ZSH_THEME_GIT_PROMPT_PREFIX="$(git_branch_color)"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"


ZSH_THEME_GIT_PROMPT_DIRTY="" ZSH_THEME_GIT_PROMPT_DIRTY=""
Expand Down

0 comments on commit f24eba3

Please sign in to comment.