Skip to content
Day 69: new resources are added every day. See what's new

Desktop App

direnv

Automatically load the right settings when you open a project folder.

Visit direnv4.6
  • Rating

    4.6 / 5

  • Pricing

    Free

  • Difficulty

    Intermediate

  • Works on

    macOS, Linux

Built with love by Shushant Lakhyani. Building bestproductivityresources.com

What is direnv?

direnv is an extension for your shell that loads and unloads environment variables depending on the current directory. It checks for a .envrc file before each prompt, supports bash, zsh, tcsh and fish, and is used for per-project setups and loading secrets for deployment.

Third-party open-source projects. We are not affiliated with their authors; repositories are provided as-is by their maintainers. Review each project's license, code and security before installing. See our Disclaimer.

Pros: what direnv does well

  • Project settings load on their own
  • Keeps projects separate
  • Works with common shells

Cons: where it falls short

  • Only for shell users
  • Needs a one-time setup in your shell

Who direnv is for

Developers who work across several projects with different settings.

Who can skip it

Anyone who does not use a shell.

direnv alternatives

Not sold on direnv? These do a similar job, and each card says what it has in common.

chezmoi

Focus: dotfiles and config management. Shares command line and open source with direnv. Adds Windows and Offline. Rated 4.7 (direnv: 4.6).

Desktop AppFreemacOS, Windows

Nushell

Focus: data pipelines. Shares shell and command line with direnv. Adds Windows and Offline. Same 4.6 rating.

Desktop AppFreemacOS, Windows

mise

Focus: version manager, dev environment and task runner. Shares open source and github with direnv. Adds Windows and Offline. Same 4.6 rating.

Desktop AppFreemacOS, Windows

Atuin

Focus: shell history, terminal and sync. Shares command line and open source with direnv. Adds Windows. Rated 4.7 (direnv: 4.6).

Desktop AppFreemacOS, Linux

htop

Focus: process viewer, system monitor and terminal. Shares command line and open source with direnv. Rated 4.7 (direnv: 4.6).

Desktop AppFreemacOS, Linux

Free alternatives to direnv

Want to spend nothing? These free picks cover similar ground.

jq

Focus: json, data and filter. Shares command line and open source with direnv. Adds Windows. Rated 4.7 (direnv: 4.6).

Desktop AppFreemacOS, Windows

OCRmyPDF

Focus: ocr and scanned pdf. Shares command line and open source with direnv. Adds Windows and Offline. Rated 4.7 (direnv: 4.6).

Desktop AppFreemacOS, Windows

rclone

Focus: cloud sync, backup and file transfer. Shares command line and open source with direnv. Adds Windows. Rated 4.7 (direnv: 4.6).

Desktop AppFreeWindows, macOS

Gum

Focus: shell scripts and terminal ui. Shares command line and open source with direnv. Adds Windows and Offline. Same 4.6 rating.

Desktop AppFreemacOS, Windows
Are you the maker of direnv?Get a free Featured badge for your site, a share image and ready-to-paste posts. No sign-up.

New · updated daily

What people are actually doing with AI

Real use cases shared on Reddit, Hacker News, X, GitHub and blogs, summarised in plain words with a link to every original post.

Browse AI use cases

Free Notion database

1,100+ ways people are making money online

Real online businesses, creators and projects, broken down by how they make money: apps, online stores, AI tools and more. Free on Gumroad.

Get the free database

Free Notion database

399+ ways to make money online

Hundreds of online income methods in one place, so you can compare options and pick one to try. Free on Gumroad.

Get the free list

For research and ideas only. Results vary and nothing here is a promise of income. See our Disclaimer.

Weekly newsletter

Everything new, every Monday.

One short email every Monday with everything shipped that week: new free tools and websites, new guides, new free browser tools and what's new in my free Gumroad libraries, plus how the site is growing. Free, and you can unsubscribe anytime.

Join the newsletter

You sign up on Gumroad, which stores your email to send the newsletter. See our Privacy Policy.