From bd081c6f521baa84df1e445cca54906947ab2538 Mon Sep 17 00:00:00 2001 From: Theo Salvo Date: Fri, 15 Mar 2019 23:04:55 -0400 Subject: [PATCH] virtualenv correct variable name --- segments/virtualenv/virtualenv.p9k | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/segments/virtualenv/virtualenv.p9k b/segments/virtualenv/virtualenv.p9k index c6d9894f7..b6aee9eee 100644 --- a/segments/virtualenv/virtualenv.p9k +++ b/segments/virtualenv/virtualenv.p9k @@ -29,7 +29,7 @@ # for more information. prompt_virtualenv() { # Early exit; $virtualenv_path must always be set. - [[ -z "$virtualenv_path" ]] && return + [[ -z "${VIRTUAL_ENV:t}" ]] && return p9k::prepare_segment "$0" "" $1 "$2" $3 "${VIRTUAL_ENV:t}" }