BSD Ports

sysutils/direnv 2.37.1nb16 NetBSD

Environment switcher for the shell

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
309977eb40
License
mit
Categories
sysutils
Package size
6274.3 KiB, 13000.8 KiB installed

Description

direnv is an environment switcher for the shell. It knows how to hook into bash, zsh, tcsh and fish shell to load or unload environment variables depending on the current directory. This allows to have project-specific environment variables and not clutter the "~/.profile" file.

In the other systems

SystemPortVersion
NetBSDsysutils/direnv2.37.1nb16
FreeBSDsysutils/direnv2.38.2_1
OpenBSDsysutils/direnv2.37.1
DragonFlysysutils/direnv2.35.0_3

Install

Binary package:

pkgin install direnv

From pkgsrc:

cd /usr/pkgsrc/sysutils/direnv && make install clean

Dependencies

No port depends on this one.

Commit history 9

DateCommitCreditsLog message
309977eb40 bsiegert Revbump all Go packages after go127 security update
96dc94755d bsiegert Revbump all Go packages after go127 security update
8154b4753f leot direnv: Update to 2.38.2
Changes: 2.38.2 ====== * fix(zsh): load the .envrc in a new shell and on cd from shell functions again * fix(fish): stop completions from breaking after the first prompt * fix(pixi): require_allowed for the manifest file as well
bd63253095 adam direnv: updated to 2.38.1
2.38.1 / 2026-10-06 * v2.38.0 was tagged but not published, because its binaries failed to upload * direnv now requires go 1.26 * the Windows release binaries are now named direnv.windows-<arch>.exe * feat: add `layout uv` * feat: add `layout pixi` * feat: add `require_allowed` * feat: add DIRENV_DISABLE to stop direnv from changing the environment * feat: add DIRENV_EXE_PATH * feat: allow multi-line env vars * feat: allow named pipes as .env files * feat: disable status logging with `log_format = "-"` * feat(prune): remove outdated hashes * feat(bash): use ble.sh's PRECMD hook when available * feat(zsh): only run the hook from the top level * fish: update fish_complete_path when XDG_DATA_DIRS changes * fix: report .envrc failures and load values over 64KB again …
866d2b73e9 bsiegert Revbump all Go packages after go127 update

The latest 5 of 9 in the history this site was built from.