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