ys-pep-2 theme: Fix the example & add warning

This commit is contained in:
Pandu POLUAN 2018-02-09 08:26:07 +07:00
commit 0b1e6f5186

View file

@ -95,7 +95,9 @@ local venv_info="%B%F{blue}\$(virtualenv_prompt_info)%b"
# Other info, you can override this function in .zshrc # Other info, you can override this function in .zshrc
yspep_other_info() { yspep_other_info() {
# Example: Show the GCE_PROJECT variable in yellow: # 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)' local other_info='$(yspep_other_info)'