Edit the .envrc file in the default text editor and reload the environment on exit

direnv

  • Shell extension to load and unload environment variables depending on the current directory.
    More information: <https://github.com/direnv/direnv>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

direnv edit {{.}}

click the source code to copy install direnv on any operating system with command-not-found.com