mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
ys-pep-2 theme: Fix the example & add warning
This commit is contained in:
parent
c44f30bf07
commit
0b1e6f5186
1 changed files with 3 additions and 1 deletions
|
|
@ -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)'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue