From fe0b58f1b1960c2877f4e994c8e06e45562d283d Mon Sep 17 00:00:00 2001 From: Justin La Sotten Date: Thu, 5 Aug 2021 09:45:21 -0400 Subject: [PATCH] Fixing the way virtualenv was determined, was set up backwards --- bedbugs.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bedbugs.zsh-theme b/bedbugs.zsh-theme index dd6eb5f..17f54cc 100644 --- a/bedbugs.zsh-theme +++ b/bedbugs.zsh-theme @@ -76,7 +76,7 @@ prompt_pwd() { # Virtualenv: current working virtualenv prompt_virtualenv() { local virtualenv_path="$VIRTUAL_ENV" - if [[ -n $virtualenv_path && -n $VIRTUAL_ENV_DISABLE_PROMPT ]]; then + if [[ -n $virtualenv_path && ! -v VIRTUAL_ENV_DISABLE_PROMPT ]]; then prompt_segment blue black "VENV: `basename $virtualenv_path`" fi }