mirror of
https://gitlab.com/rensa-nix/direnv.git
synced 2025-12-12 10:00:11 +01:00
28 lines
699 B
Markdown
28 lines
699 B
Markdown
# Rensa Direnv Integration
|
|
|
|
## Usage
|
|
|
|
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
|
|
```
|
|
|
|
## Configuration
|
|
|
|
See [direnvrc](./direnvrc) at the top.
|
|
|
|
## Formatting & Linting
|
|
|
|
```sh
|
|
shfmt -w -i 2 direnvrc
|
|
shellcheck direnvrc
|
|
```
|