direnv-2.37.1
tool for managing environment based on current directory
Back to search · Project homepage
Description
direnv is an extension for POSIX shells that adds the ability to modify
the environment based on the current working directory.
Before each prompt, direnv checks for the existence of .envrc in the
current and parent directories. If the file exists, and is authorized,
it is loaded into a bash sub-shell and all exported variables are then
captured by direnv and made available to the current shell.
This allows for project specific environment variables to be defined
without cluttering .profile.
Supports common shells such as bash, zsh, fish, tcsh, elvish.
Package information
- Ports path
- sysutils/direnv
- Package architecture
- amd64
- Maintainer
- Ashton Fagg <ashton@fagg.id.au>
- Categories
- sysutils, devel, lang/go
- Available flavors
- None listed
- Only for architectures
- aarch64, amd64, arm, i386, riscv64
These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.