Skip to content

Commit

Permalink
treewide: leverage direnv to automatically enter developer shell
Browse files Browse the repository at this point in the history
Leverage direnv [1] to automatically enter the developer shell upon
entering the project directory after running 'direnv allow'.

[1]: https://direnv.net

Link: danth#519
(cherry picked from commit 6ef37ca)
  • Loading branch information
trueNAHO committed Jan 4, 2025
1 parent 6416490 commit 2f6e9da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.direnv/
result
result-*
7 changes: 7 additions & 0 deletions docs/src/development_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ To enter the developer shell, run:
```console
nix develop
```

To automatically enter the developer shell upon entering the project directory
with [`direnv`](https://direnv.net), run:

```console
direnv allow
```

0 comments on commit 2f6e9da

Please sign in to comment.