Link Search Menu Expand Document

12

Notes

  • direnv the tool I didn't know I needed!
    • Docs,
    • install on Fedora 33 with
      sudo dnf -y install direnv
      
    • Zsh config to hook in direnv
      # direnv
      if [ $(command -v direnv) ]; then
        eval "$(direnv hook zsh)"
      fi
      
    • In a new project create a .envrc file and add dotenv to it to load your environment variables
    • Allow the file with direnv allow
    • Alias to initialise direnv ini new projects:
      # direnv
      alias -g di='echo dotenv > .envrc && touch .env && direnv allow'
      

Thoughts

Grateful

Events