# direnv integration

Workrex uses `.workrex.yaml`, `~/.config/workrex/config.yaml`, and `WORKREX_*` environment variables. See [Configuration](https://kong109.github.io/workrex/guide/configuration/).

If your project uses [direnv](https://direnv.net/) for environment management, you can configure workrex to automatically set it up in new worktrees:

```yaml
# .workrex.yaml
post_create:
  - direnv allow

files:
  symlink:
    - .envrc
```

See also [Using direnv for port isolation](https://kong109.github.io/workrex/guide/monorepos/#using-direnv) in monorepos.
