Skip to content

Commit

Permalink
Fixing the way virtualenv was determined, was set up backwards
Browse files Browse the repository at this point in the history
  • Loading branch information
justino committed Aug 5, 2021
1 parent 0a92ed5 commit fe0b58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bedbugs.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fe0b58f

Please # to comment.