direnv/README.md
technofab 3a3655b494
feat: add config variables and PRJ compat
BREAKING CHANGE: rename use_envreload to use_ren/use_rensa
2025-07-18 16:40:03 +02:00

28 lines
699 B
Markdown

# Rensu Direnv Integration
## Usage
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
```
## Configuration
See [direnvrc](./direnvrc) at the top.
## Formatting & Linting
```sh
shfmt -w -i 2 direnvrc
shellcheck direnvrc
```