Tarrasch / zsh-autoenv

Autoenv for zsh
692 stars 30 forks source link

Does't trigger when I entered the folder #99

Open zhouhao27 opened 1 year ago

zhouhao27 commented 1 year ago

This is what I did:

curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh

source ~/.zplug/init.zsh
zplug "Tarrasch/zsh-autoenv"
zplug load --verbose
echo 'Hello world!'

Then when I cd ~/project folder, nothing happened. Can anybody tell what I did wrongly? Thanks.

blueyed commented 1 year ago

Try export AUTOENV_DEBUG=1 (up to 3) to see if it does anything. It should ask for confirmation when sourcing it the first time.

zhouhao27 commented 1 year ago

I add export AUTOENV_DEBUG=1 in .zshrc. When I open a new shell, it shows:

[zplug] Loaded from cache (/Volumes/T7/Users/xxxxx/.zplug/cache)
[zplug] Run compinit

But when I cd ~/projects, nothing happened.