From 24a46fb29f9a4ef6cfacaae42b995a617d3b301d Mon Sep 17 00:00:00 2001 From: EnigmaCurry Date: Tue, 12 Nov 2024 11:05:50 -0700 Subject: [PATCH] direnv --- config/bash/direnv.sh | 7 +++++++ config/toolbox/arch-dev.sh | 1 + config/toolbox/fedora-dev.sh | 1 + 3 files changed, 9 insertions(+) create mode 100644 config/bash/direnv.sh diff --git a/config/bash/direnv.sh b/config/bash/direnv.sh new file mode 100644 index 0000000..9af28e2 --- /dev/null +++ b/config/bash/direnv.sh @@ -0,0 +1,7 @@ +# direnv sets contextual aliases per working directory. +# Each project root directory should contain a .envrc file +# You must allow each directory to be loaded, e.g., +# direnv allow +if command -v direnv &>/dev/null ; then + eval "$(direnv hook bash)" +fi diff --git a/config/toolbox/arch-dev.sh b/config/toolbox/arch-dev.sh index 15e1838..9ca749b 100755 --- a/config/toolbox/arch-dev.sh +++ b/config/toolbox/arch-dev.sh @@ -15,6 +15,7 @@ PACKAGES=( noto-fonts-cjk noto-fonts-emoji noto-fonts-extra + direnv ) source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common.sh" diff --git a/config/toolbox/fedora-dev.sh b/config/toolbox/fedora-dev.sh index faf97be..b0c1788 100755 --- a/config/toolbox/fedora-dev.sh +++ b/config/toolbox/fedora-dev.sh @@ -35,6 +35,7 @@ PACKAGES=( poppler-glib-devel zlib-devel pkgconf + direnv # texlive-collection-basic # texlive-latex # texlive-latex-bin