From cb5b60c5e792f4687f0119541e227aa46bdf3155 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Wed, 28 Jun 2023 21:58:40 -0700 Subject: [PATCH] env: add doom emacs bin path --- .config/shell/env | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/shell/env b/.config/shell/env index 015da1f..baef1bf 100644 --- a/.config/shell/env +++ b/.config/shell/env @@ -27,6 +27,11 @@ export VISUAL="$EDITOR" # Add local bin path and shell bin path to PATH export PATH="$PATH:${XDG_DATA_HOME:-$HOME/.local}/bin:$SHELL_CONFIG_DIR/bin" +# Add doom emacs bin folder to path if it exists +doom_bin_dir="${XDG_DATA_HOME:-$HOME/.config}/emacs/bin" +if [ -d "$doom_bin_dir" ]; then export PATH="$PATH:$doom_bin_dir"; fi +unset doom_bin_dir + # Shell to use for commands like `nix-shell -p` export NIX_BUILD_SHELL=zsh