qmetrics.net

direnv

Per-directory environment loading for your shell

TerminalsDesktop/CLI app
direnv screenshot

direnv hooks into bash, zsh, fish, and other shells to load or unload environment variables when you enter or leave a directory. Project settings live in `.envrc` files instead of global profiles.

Overview

direnv extends an existing shell so environment variables change with your current working directory. Before each prompt it looks for `.envrc` and optionally `.env` files in the directory tree; after you authorize a file, exported variables from a bash subshell are applied to your interactive session.

Typical uses include isolated per-project dev environments, loading deployment secrets, and injecting twelve-factor style configuration without editing `~/.profile`. Hooks exist for common shells including bash, zsh, tcsh, fish, and several newer shells.

The binary is a single static executable intended to add negligible overhead on each prompt. It is language-agnostic and can underpin directory-based version managers similar to pyenv or rbenv patterns.

A standard library of helper functions ships with `.envrc` execution, such as `PATH_add` for safe path prepends. You can extend behavior with personal `direnvrc` files under your config directory, and combine `.envrc` with dotenv-style `.env` files when both are needed.

Key features

  • Automatic directory-based env load
  • Authorized `.envrc` execution
  • Multi-shell hook support
  • Fast static single binary
  • Built-in stdlib helpers
  • Custom extensions via direnvrc
  • Optional `.env` dotenv pairing
  • Language-agnostic project envs

Use cases

  • Per-project toolchain paths
  • Loading API keys for deploys
  • Isolating language runtimes
  • Twelve-factor app variables
  • Keeping global profiles minimal

Tags

Similar software

Oh My Zsh

Community zsh configuration framework with plugins

Oh My Zsh manages zsh setup with bundled plugins, themes, and an installer driven by curl, wget, or fetch.

  • Centralized zsh configuration
  • Hundreds of optional plugins
  • Bundled prompt themes
ShellLinux, macOS, Windows, CLIDetails →
★ 191.1k⟳ todayMIT

Terminal

Modern tabbed terminal for Windows command-line users

Windows Terminal is a desktop terminal application for Windows with tabs, theming, and rich text. The same codebase includes the classic console host and shared rendering components.

  • Tabbed terminal profiles
  • Theming and appearance settings
  • Rich text and unicode support
C++WindowsDetails →
★ 105.6k⟳ todayMIT
TerminalsDesktop/CLI app

fzf

General-purpose command-line fuzzy finder

Fzf filters lists interactively in the terminal using fuzzy matching. It ships as a single binary with shell and editor integrations.

  • Fuzzy search with extended query syntax
  • Single-binary portable distribution
  • Bash, Zsh, Fish, and Nushell integrations
GoLinux, macOS, Windows, CLIDetails →
★ 84.8k⟳ 3 days agoMIT
TerminalsDesktop/CLI app

Tabby

Configurable cross-platform terminal with SSH and serial

Tabby is a terminal emulator for local shells, SSH, Telnet, and serial links on Windows, macOS, and Linux. It adds splits, tabs, themes, and integrated connection management.

  • SSH2 connection manager
  • Telnet and serial terminals
  • Nested split panes and tabs
TypeScriptLinux, macOS, WindowsDetails →
★ 75.7k⟳ 2 days agoMIT
TerminalsDesktop/CLI app
Open Source Alternative to:Termius

ripgrep

Recursive regex search respecting gitignore rules

ripgrep (rg) searches directories line by line for regex patterns. It skips ignored, hidden, and binary files by default and runs on Windows, macOS, and Linux.

  • Recursive directory search
  • Gitignore-aware filtering
  • File-type include and exclude
RustLinux, macOS, WindowsDetails →
★ 70.8k⟳ 9 days agoUnlicense · open core
TerminalsDesktop/CLI app

Alacritty

Cross-platform OpenGL terminal emulator

A terminal emulator with sensible defaults and extensive configuration, integrating with other applications instead of duplicating their features. Runs on BSD, Linux, macOS, and Windows.

  • OpenGL rendering
  • Extensive TOML configuration
  • Vi mode navigation
RustLinux, macOS, WindowsDetails →
★ 66.5k⟳ yesterdayApache-2.0
TerminalsDesktop/CLI app