From 3e950a0cbecc9d00a65b50d8ecdc96bca4fa32ae Mon Sep 17 00:00:00 2001 From: xarvex Date: Sun, 1 Sep 2024 21:26:34 -0500 Subject: [PATCH] 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`. --- .envrc => .envrc.recommended | 3 +++ .gitignore | 1 + 2 files changed, 4 insertions(+) rename .envrc => .envrc.recommended (82%) diff --git a/.envrc b/.envrc.recommended similarity index 82% rename from .envrc rename to .envrc.recommended index e84ab0f8..94dd6bc2 100644 --- a/.envrc +++ b/.envrc.recommended @@ -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=" diff --git a/.gitignore b/.gitignore index 459e6d88..7b493926 100644 --- a/.gitignore +++ b/.gitignore @@ -254,5 +254,6 @@ compile_commands.json TagStudio.ini # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,python,qt +.envrc .direnv .devenv