macOS
brew install direnvlocal Homebrew formula metadata
sudo port install direnvMacPorts ports tree · devel/direnv/Portfile · ソース: api.github.com
brew / 順位 355
direnv のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install direnvlocal Homebrew formula metadata
sudo port install direnvMacPorts ports tree · devel/direnv/Portfile · ソース: api.github.com
sudo apk add direnvAlpine Linux edge package indexes · direnv · ソース: dl-cdn.alpinelinux.org
sudo apt install direnvDebian stable package indexes · direnv · ソース: deb.debian.org
sudo dnf install direnvFedora Rawhide package metadata · direnv · ソース: dl.fedoraproject.org
nix profile install nixpkgs#direnvnixpkgs package indexes · pkgs/by-name/di/direnv/package.nix · ソース: api.github.com
sudo pacman -S direnvArch Linux sync databases · direnv · ソース: geo.mirror.pkgbuild.com
sudo zypper install direnvopenSUSE Tumbleweed package metadata · direnv · ソース: download.opensuse.org
scoop install main/direnvScoop official bucket manifest trees · bucket/direnv.json · ソース: api.github.com
winget install --id direnv.direnv -eWindows Package Manager source index · direnv.direnv · ソース: cdn.winget.microsoft.com
概要
Load/unload environment variables based on $PWD
履歴
direnv is a shell extension for loading and unloading project-specific environment variables as the current working directory changes.
The project frames itself as a way to unclutter shell startup files: instead of putting every export in a global profile, a project can keep an authorized .envrc near its source tree. Its README and man page describe a small, language-agnostic executable that hooks into interactive shells and evaluates environment changes in a subprocess.
Official installation documentation lists packages or install paths for Fedora, Arch Linux, Debian, Gentoo Guru, NetBSD pkgsrc-wip, NixOS, Homebrew, openSUSE, MacPorts, Ubuntu, GNU Guix, and Windows winget. That packaging spread matches direnv's role as cross-language glue for local development environments.
The common workflow is to install direnv, hook it into the user's shell, create a project .envrc, and explicitly allow that file before it is evaluated. The README highlights 12-factor environment variables, isolated development environments, deployment secrets, and integrations with tools such as Nix and language version managers.
Package nerds care about direnv because it solves a small boundary problem cleanly: it lets shells, package managers, language managers, and project repositories cooperate without turning into a full environment manager.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
$XDG_CONFIG_HOME/direnv/direnv.toml~/.config/direnv/direnv.toml~/.config/direnv/direnvrc.envrc実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
direnv | 実行可能ファイル | インデックス済み実行可能ファイル | ローカル実行可能ファイルインデックスから検出されました。 |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
インストールメタデータ
| パッケージキー | brew:direnv |
|---|---|
| バージョン | 2.37.1 |
| パッケージマネージャ | Homebrew |
| ホームページ | https://direnv.net/ |
| リポジトリ | https://github.com/direnv/direnv |
| 最終更新 | 2026-07-21T09:31:34-04:00 |
| Pulse | updated |
| Bottle | 未記録 |
| サービス | 宣言なし |
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
direnv 2.32.1-2+b16
Utility to set directory specific environment variables
sudo apt install direnvdirenv
nix profile install nixpkgs#direnvdirenv 2.32.1-2build1
Utility to set directory specific environment variables
sudo apt install direnvdirenv 2.37.1-r8
Environment variable switcher for the shell
sudo apk add direnvdirenv-doc 2.37.1-r8
Environment variable switcher for the shell (documentation)
sudo apk add direnv-docdirenv-fish 2.37.1-r8
configuration hooks for fish
sudo apk add direnv-fishdirenv 2.37.1-7.fc45
Per-directory shell configuration tool
https://github.com/direnv/direnv
sudo dnf install direnvdirenv 2.37.1-1
A shell extension that manages your environment
sudo pacman -S direnvdirenv 2.37.1-1.7
Environment switcher for shells
sudo zypper install direnvdirenv-bash-completion 2.37.1-1.7
Bash Completion for direnv
sudo zypper install direnv-bash-completiondirenv-fish-completion 2.37.1-1.7
Fish Completion for direnv
sudo zypper install direnv-fish-completiondirenv-zsh-completion 2.37.1-1.7
Zsh Completion for direnv
sudo zypper install direnv-zsh-completiondirenv
sudo port install direnvmain/direnv
scoop install main/direnvdirenv.direnv
winget install --id direnv.direnv -eソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.