Merge cb11fcc86f
into e9809c1bd2
This commit is contained in:
commit
ae04a2a279
|
@ -191,7 +191,9 @@ if [[ $autoenv_event == 'enter' ]]; then
|
|||
|
||||
setopt localoptions extendedglob
|
||||
local -a venv
|
||||
venv=(./(../)#.venv(NY1:A))
|
||||
venv=(./(../)#.venv(N:A))
|
||||
venv=( ${venv[1]} )
|
||||
venv=( ${venv:#} )
|
||||
|
||||
if [[ -n "$_ZSH_ACTIVATED_VIRTUALENV" && -n "$VIRTUAL_ENV" ]]; then
|
||||
if ! (( $#venv )) || [[ "$_ZSH_ACTIVATED_VIRTUALENV" != "$venv[1]" ]]; then
|
||||
|
|
|
@ -75,7 +75,8 @@ autoenv_prepend_path() {
|
|||
}
|
||||
autoenv_remove_path() {
|
||||
local i
|
||||
local old_path=$path
|
||||
local old_path
|
||||
old_path=$path
|
||||
for i; do
|
||||
path=("${(@)path:#$i}")
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue