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`.
This commit is contained in:
xarvex
2024-09-01 21:26:34 -05:00
parent 38626ac690
commit 3e950a0cbe
2 changed files with 4 additions and 0 deletions

View File

@@ -1,4 +1,7 @@
# vi: ft=bash
#
# If you wish to use this file, copy or symlink it to `.envrc` for direnv to read it.
# This will use the flake development shell.
if ! has nix_direnv_version || ! nix_direnv_version 3.0.5; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.5/direnvrc" "sha256-RuwIS+QKFj/T9M2TFXScjBsLR6V3A17YVoEW/Q6AZ1w="

1
.gitignore vendored
View File

@@ -254,5 +254,6 @@ compile_commands.json
TagStudio.ini
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,python,qt
.envrc
.direnv
.devenv