All apps/direnv

direnv

direnv

An environment switcher for the shell, loading and unloading variables as you change directory.

Runs as direnv|macOS, Linux|direnv.net

Command form

ai-draft · 3 tasks · 4 fields

Authorize or revoke .envrc files and run a command inside a directory environment. Other subcommands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui direnv

direnv allow

Allow .envrc

Grants direnv permission to load the given .envrc (default: the current directory).

Allow .envrcExample values, fixed in this page — nothing here reaches a terminal
Basic
.envrc or directory
any
TasksEach one presets the form for one job
Allow
path
ParametersOnly these flags are editable in the form
.envrc or directory
path · positional 0

direnv deny

Deny .envrc

Revokes authorization of the given .envrc.

Deny .envrcExample values, fixed in this page — nothing here reaches a terminal
Basic
.envrc or directory
any
TasksEach one presets the form for one job
Deny
path
ParametersOnly these flags are editable in the form
.envrc or directory
path · positional 0

direnv exec

Run in environment

Runs a command after loading the first .envrc found in DIR.

Run in environmentExample values, fixed in this page — nothing here reaches a terminal
Basic
Directory*
directory
Command and arguments*
string
TasksEach one presets the form for one job
Exec in directory
dircommand
ParametersOnly these flags are editable in the form
Directory
path · positional 0
Command and arguments
string · positional 1 · repeatable
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed direnv against its version. A form that does not match your version is not offered.