Skip to content
Browse files

No way to trigger funcition on interpolation. Give up for now

  • Loading branch information...
1 parent cb9db96 commit f24eba3f3fa8761f8a5da6064ecb0a1767a4864f @caio committed Jul 31, 2012
Showing with 1 addition and 9 deletions.
  1. +1 −9 themes/errado.zsh-theme
View
10 themes/errado.zsh-theme
@@ -2,15 +2,7 @@
MODE_INDICATOR="%{$fg_bold[cyan]%}--COMMAND--%{$reset_color%}"
-git_branch_color() {
- 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_PREFIX="%{$fg[magenta]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=""

0 comments on commit f24eba3

Please sign in to comment.
Something went wrong with that request. Please try again.