sysutils/direnv 2.37.1 OpenBSD
tool for managing environment based on current directory
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- Ashton Fagg <[email protected]>
- Categories
- sysutils, devel, lang/go
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.
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | sysutils/direnv | 2.37.1 |
| FreeBSD | sysutils/direnv | 2.38.2_1 |
| NetBSD | sysutils/direnv | 2.37.1nb16 |
| DragonFly | sysutils/direnv | 2.35.0_3 |
Install
Binary package:
pkg_add direnv
From the ports tree:
cd /usr/ports/sysutils/direnv && make install
Dependencies
Build dependencies 2
Run dependencies 1
No port depends on this one.