Hacker News new | ask | show | jobs
by noja 638 days ago
what if you forget to run direnv the second time?
2 comments

You don't have to run anything. The point of direnv is that loads/unloads automatically when your enter/leave a directory
I imagine they use an alias or bash function for cd, which uses direnv under the hood
Yep. Direnv inserts itself into your prompt function.