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

Commit bd081c6

Browse files
committed
virtualenv correct variable name
1 parent 61b665f commit bd081c6

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)