[ZSH] Fix path ordering

This commit is contained in:
Fabian Ising
2026-08-03 11:02:02 +02:00
parent 7afa58f3ec
commit 4c5f988d92
+1 -1
View File
@@ -67,7 +67,7 @@ fi
typeset -U path PATH typeset -U path PATH
[[ -z "${VIRTUAL_ENV:-}" ]] && unset VIRTUAL_ENV [[ -z "${VIRTUAL_ENV:-}" ]] && unset VIRTUAL_ENV
if [[ -n "$VIRTUAL_ENV" && -f "$VIRTUAL_ENV/bin/activate" ]]; then 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" source "$VIRTUAL_ENV/bin/activate"
fi fi
fi fi