Tarrasch / zsh-autoenv

Autoenv for zsh
693 stars 30 forks source link

Using zsh `..` instead of `cd ..` does not trigger `.autoenv-leave.zsh` #94

Open KastanDay opened 2 years ago

KastanDay commented 2 years ago

When exiting a directory containing .autoenv-leave.zsh I often use .. instead of cd .. and this does not trigger .autoenv-leave.zsh on first use. Would be a handy improvement!

Thanks for this great work.

Here are my relevant files:

───────┬────────────────────────────────────────────────────────────────────────
       │ File: .autoenv.zsh
───────┼────────────────────────────────────────────────────────────────────────
   1   │ echo ACTIVATING openai; conda activate openai
───────┴────────────────────────────────────────────────────────────────────────
───────┬────────────────────────────────────────────────────────────────────────
       │ File: .autoenv_leave.zsh
───────┼────────────────────────────────────────────────────────────────────────
   1   │ echo DEACTIVATING openai; conda deactivate
───────┴────────────────────────────────────────────────────────────────────────