fix(shell): harden shared.sh and dfm for set -euo pipefail

Use ${VAR:-} defaults in shared.sh to prevent set -u failures on
unset variables (DOTFILES, ZSH_CUSTOM_COMPLETION_PATH, FPATH).
Export DOTFILES/BREWFILE/HOSTFILES in dfm so sourced scripts see them.
This commit is contained in:
2026-02-08 01:12:39 +02:00
parent 785a8e8eb7
commit a18c16b0b9
2 changed files with 4 additions and 3 deletions

View File

@@ -12,6 +12,7 @@
: "${DOTFILES:=$HOME/.dotfiles}"
: "${BREWFILE:=$DOTFILES/config/homebrew/Brewfile}"
: "${HOSTFILES:=$DOTFILES/hosts}"
export DOTFILES BREWFILE HOSTFILES
SCRIPT=$(basename "$0")