feat: add config variables and PRJ compat

BREAKING CHANGE: rename use_envreload to use_ren/use_rensa
This commit is contained in:
technofab 2025-07-18 16:40:03 +02:00
parent 0734a6b27a
commit 664c907ace
No known key found for this signature in database
2 changed files with 130 additions and 35 deletions

View file

@ -2,17 +2,23 @@
## Usage
```console
direnv fetchurl https://gitlab.com/rensa-nix/direnv/-/raw/main/direnvrc
```
1. Use latest release/tag: [![Latest Release](https://gitlab.com/rensa-nix/direnv/-/badges/release.svg)](https://gitlab.com/rensa-nix/direnv/-/releases)
1. Get hash for release:
```bash
direnv fetchurl https://gitlab.com/rensa-nix/direnv/-/raw/<version>/direnvrc
```
1. Add this to your `.envrc`:
```bash
# configure rensa here if needed, like:
# REN_DO_WATCH=false
# etc.
source $(fetchurl https://gitlab.com/rensa-nix/direnv/-/raw/<version>/direnvrc <hash>)
use ren //repo/shells/default
```
`.envrc`:
## Configuration
```bash
source $(fetchurl https://gitlab.com/rensa-nix/direnv/-/raw/main/direnvrc <hash>)
use envreload //repo/shells/default
```
See [direnvrc](./direnvrc) at the top.
## Formatting & Linting