summaryrefslogtreecommitdiff
path: root/themes/ys.zsh-theme
diff options
context:
space:
mode:
Diffstat (limited to 'themes/ys.zsh-theme')
-rw-r--r--themes/ys.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/ys.zsh-theme b/themes/ys.zsh-theme
index 5ef500e14..4c3c56ffc 100644
--- a/themes/ys.zsh-theme
+++ b/themes/ys.zsh-theme
@@ -49,7 +49,7 @@ local venv_info='$(virtenv_prompt)'
YS_THEME_VIRTUALENV_PROMPT_PREFIX=" %{$fg[green]%}"
YS_THEME_VIRTUALENV_PROMPT_SUFFIX=" %{$reset_color%}%"
virtenv_prompt() {
- [[ -n ${VIRTUAL_ENV} ]] || return
+ [[ -n "${VIRTUAL_ENV:-}" ]] || return
echo "${YS_THEME_VIRTUALENV_PROMPT_PREFIX}${VIRTUAL_ENV:t}${YS_THEME_VIRTUALENV_PROMPT_SUFFIX}"
}