From b13c84d9d70afd9070f10f6f65c1d5dc27fff319 Mon Sep 17 00:00:00 2001 From: adlee-was-taken Date: Fri, 19 Dec 2025 19:44:20 -0500 Subject: [PATCH] Auto-sync from catchthesethighs --- bin/dotfiles-sync.sh | 2 +- zsh/.zshrc | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/bin/dotfiles-sync.sh b/bin/dotfiles-sync.sh index e4a6756..1ad5259 100755 --- a/bin/dotfiles-sync.sh +++ b/bin/dotfiles-sync.sh @@ -23,7 +23,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" DOTFILES_CONF="$HOME/.dotfiles/dotfiles.conf" if [[ -f "$DOTFILES_CONF" ]]; then - source "$DOTFILES_CONF" + source $DOTFILES_CONF else DOTFILES_DIR="$HOME/.dotfiles" DOTFILES_BRANCH="main" diff --git a/zsh/.zshrc b/zsh/.zshrc index 4746037..9a4f2b5 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -284,6 +284,17 @@ _deferred_load() { if [[ -f "$_dotfiles_dir/vault/secrets.enc" ]] && [[ -x "$vault_script" ]]; then eval "$("$vault_script" shell 2>/dev/null)" || true fi + + # Load dotfiles.conf env variables. + DOTFILES_CONF="$HOME/.dotfiles/dotfiles.conf" + + if [[ -f "$DOTFILES_CONF" ]]; then + source $DOTFILES_CONF + else + DOTFILES_DIR="$HOME/.dotfiles" + DOTFILES_BRANCH="main" + fi + } # ============================================================================