2025-07-11 20:54:35 +02:00
|
|
|
# Rensa Direnv Integration
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
2025-07-18 16:40:03 +02:00
|
|
|
1. Use latest release/tag: [](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
|
|
|
|
|
```
|
2025-07-11 21:02:19 +02:00
|
|
|
|
2025-07-18 16:40:03 +02:00
|
|
|
## Configuration
|
2025-07-11 20:54:35 +02:00
|
|
|
|
2025-07-18 16:40:03 +02:00
|
|
|
See [direnvrc](./direnvrc) at the top.
|
2025-07-11 20:54:35 +02:00
|
|
|
|
2025-07-11 21:02:19 +02:00
|
|
|
## Formatting & Linting
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
shfmt -w -i 2 direnvrc
|
|
|
|
|
shellcheck direnvrc
|
|
|
|
|
```
|