From aec01d5876aaaa877168e7aec5e9553923f61da3 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Thu, 30 Oct 2025 08:51:52 -0400 Subject: [PATCH] feat: Sources personal env variables file, if it exists. --- dev-env | 4 ++-- env/.zshenv | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev-env b/dev-env index 9829904..b50f951 100755 --- a/dev-env +++ b/dev-env @@ -120,8 +120,8 @@ copy_files $DEV_ENV/env/.config/systemd/user $XDG_CONFIG_HOME/systemd/user # copying configuration. copy $DEV_ENV/env/.zshenv $HOME/.zshenv mkdir -p $XDG_CONFIG_HOME/zsh >/dev/null 2>&1 -update_dirs $DEV_ENV/env/.config/zsh $XDG_CONFIG_HOME/zsh -copy_files $DEV_ENV/env/.config/zsh $XDG_CONFIG_HOME/zsh +update_dirs $DEV_ENV/env/.config/zsh $XDG_CONFIG_HOME/zsh # copies sup-directories. +copy_files $DEV_ENV/env/.config/zsh $XDG_CONFIG_HOME/zsh # copies files in the root directory. # TMUX copy $DEV_ENV/env/.tmux.conf $HOME/.tmux.conf diff --git a/env/.zshenv b/env/.zshenv index 2dc2894..26e7aa2 100755 --- a/env/.zshenv +++ b/env/.zshenv @@ -86,3 +86,4 @@ export _ZO_DATA_DIR="$XDG_DATA_HOME" unset _ZO_ECHO [ -f "$LOCAL_ENV" ] && source "$LOCAL_ENV" +[ -f "$ZDOTDIR/personal.env" ] && source "$ZDOTDIR/personal.env"