diff --git a/zsh/.zshrc b/zsh/.zshrc index c1f4c41..b56a746 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -67,7 +67,7 @@ fi typeset -U path PATH [[ -z "${VIRTUAL_ENV:-}" ]] && unset VIRTUAL_ENV if [[ -n "$VIRTUAL_ENV" && -f "$VIRTUAL_ENV/bin/activate" ]]; then - if [[ ":$PATH:" != *":$VIRTUAL_ENV/bin:"* ]]; then + if [[ ${PATH%%:*} != "$VIRTUAL_ENV/bin" ]]; then source "$VIRTUAL_ENV/bin/activate" fi fi