Fix themes to work with really-local locals.

Fix quoting issue in theme debugging code.
This commit is contained in:
Andrew Janke 2015-04-03 17:52:42 -04:00
commit a352b1d43c
25 changed files with 41 additions and 57 deletions

View file

@ -9,12 +9,12 @@ _fishy_collapsed_wd() {
')
}
local user_color='green'; [ $UID -eq 0 ] && user_color='red'
user_color='green'; [ $UID -eq 0 ] && user_color='red'
PROMPT='%n@%m %{$fg[$user_color]%}$(_fishy_collapsed_wd)%{$reset_color%}%(!.#.>) '
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
local return_status="%{$fg_bold[red]%}%(?..%?)%{$reset_color%}"
RPROMPT='${return_status}$(git_prompt_info)$(git_prompt_status)%{$reset_color%}'
RPROMPT=${return_status}'$(git_prompt_info)$(git_prompt_status)%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX=" "
ZSH_THEME_GIT_PROMPT_SUFFIX=""