Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

Commit 00b6da0

Browse files
authored
Merge pull request #1212 from buzzsurfr/issue1211
[Bugfix] virtualenv correct variable name
2 parents 61b665f + bd081c6 commit 00b6da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

segments/virtualenv/virtualenv.p9k

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# for more information.
3030
prompt_virtualenv() {
3131
# Early exit; $virtualenv_path must always be set.
32-
[[ -z "$virtualenv_path" ]] && return
32+
[[ -z "${VIRTUAL_ENV:t}" ]] && return
3333

3434
p9k::prepare_segment "$0" "" $1 "$2" $3 "${VIRTUAL_ENV:t}"
3535
}

0 commit comments

Comments
 (0)