Skip to content

Commit 3e950a0

Browse files
committed
fix(direnv)!: gitignore .envrc
A common workflow is to have a local .envrc, allow contributors to do so. Still provide the recommended Nix-based setup, for those who wish to use it. That file can then be copied to or symlinked to `.envrc`.
1 parent 38626ac commit 3e950a0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.envrc renamed to .envrc.recommended

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# vi: ft=bash
2+
#
3+
# If you wish to use this file, copy or symlink it to `.envrc` for direnv to read it.
4+
# This will use the flake development shell.
25

36
if ! has nix_direnv_version || ! nix_direnv_version 3.0.5; then
47
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.5/direnvrc" "sha256-RuwIS+QKFj/T9M2TFXScjBsLR6V3A17YVoEW/Q6AZ1w="

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,5 +254,6 @@ compile_commands.json
254254
TagStudio.ini
255255
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,python,qt
256256

257+
.envrc
257258
.direnv
258259
.devenv

0 commit comments

Comments
 (0)