From 0b1e6f51865af35deb2f9e02c0751029b88f87c1 Mon Sep 17 00:00:00 2001 From: Pandu POLUAN Date: Fri, 9 Feb 2018 08:26:07 +0700 Subject: [PATCH] ys-pep-2 theme: Fix the example & add warning --- themes/ys-pep-2.zsh-theme | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/ys-pep-2.zsh-theme b/themes/ys-pep-2.zsh-theme index d94d85402..8ad6cb478 100644 --- a/themes/ys-pep-2.zsh-theme +++ b/themes/ys-pep-2.zsh-theme @@ -95,7 +95,9 @@ local venv_info="%B%F{blue}\$(virtualenv_prompt_info)%b" # Other info, you can override this function in .zshrc yspep_other_info() { # Example: Show the GCE_PROJECT variable in yellow: - : echo "%{\${GCE_PROJECT:+$fg[yellow] GCE:}\$GCE_PROJECT%}" + : echo "%{${GCE_PROJECT:+$fg[yellow] GCE:}$GCE_PROJECT%}" + + # IMPORTANT: You should *not* escape the vars in the above echo! } local other_info='$(yspep_other_info)'