From e3c9341623c187b71bdba6eaabca00ab51ccffc9 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Wed, 4 Jun 2025 22:44:32 +0300 Subject: [PATCH] Use direnv for project-specific environment variables --- .bashrc | 3 +++ .config/emacs/init.el | 4 ++++ .config/setup/01-install-packages.sh | 1 + 3 files changed, 8 insertions(+) diff --git a/.bashrc b/.bashrc index b488fcc..1c22de8 100644 --- a/.bashrc +++ b/.bashrc @@ -115,3 +115,6 @@ if ! shopt -oq posix; then . /etc/bash_completion fi fi + +# Hook up direnv +eval "$(direnv hook bash)" diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 665abfb..d98001c 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -163,3 +163,7 @@ :custom (ein:jupyter-default-notebook-directory "~/Projects/notebooks") (ein:output-area-inlined-images t)) + +(use-package direnv + :config + (direnv-mode)) diff --git a/.config/setup/01-install-packages.sh b/.config/setup/01-install-packages.sh index 99da2d8..6d2da35 100755 --- a/.config/setup/01-install-packages.sh +++ b/.config/setup/01-install-packages.sh @@ -2,6 +2,7 @@ DEB_PKGS="\ audacity \ +direnv \ docker.io \ emacs-mozc \ exa \