From 6f399a902e071c84c2e36ad48bbd5d89a7b72e67 Mon Sep 17 00:00:00 2001
From: Tobias Wolter <mumpfpuffel@gmail.com>
Date: Sat, 18 May 2019 00:25:14 +0200
Subject: Fix weird parser error

If the C is left unquoted, it will result in `$ANTIGEN_PATH/bundles/romkatv/powerlevel10k/powerlevel9k.zsh-theme.antigen-compat:133: parse error: condition expected: $LANG` or something along those lines with a recent zsh version. This fixes that issue.
---
 powerlevel9k.zsh-theme | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index a96a0b0e..96fac690 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -2402,7 +2402,7 @@ _p9k_init() {
   fi
 
   # If the terminal `LANG` is set to `C`, this theme will not work at all.
-  if [[ $LANG == C && $POWERLEVEL9K_IGNORE_TERM_LANG == false ]]; then
+  if [[ $LANG == "C" && $POWERLEVEL9K_IGNORE_TERM_LANG == false ]]; then
     print -P "\t%F{red}WARNING!%f Your terminal's 'LANG' is set to 'C', which breaks this theme!"
     print -P "\t%F{red}WARNING!%f Please set your 'LANG' to a UTF-8 language, like 'en_US.UTF-8'"
     print -P "\t%F{red}WARNING!%f _before_ loading this theme in your \~\.zshrc. Putting"
-- 
cgit v1.2.3