[ZSH] Fix path ordering
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user