From 1aa560a248aea5b29e617af12fb782699c9a16de Mon Sep 17 00:00:00 2001 From: materus Date: Sun, 21 Jun 2026 09:04:13 +0200 Subject: [PATCH] common: zprofile load home-manager profile.d --- config/shell/zsh/.zprofile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config/shell/zsh/.zprofile b/config/shell/zsh/.zprofile index cf82de4..7024cf1 100644 --- a/config/shell/zsh/.zprofile +++ b/config/shell/zsh/.zprofile @@ -1,3 +1,12 @@ __HOME_ZPROFILE_SOURCED=1 [[ -f "/etc/profile" ]] && emulate sh -c "source /etc/profile" -[[ -f "~/.profile" ]] && emulate sh -c "source ~/.profile" \ No newline at end of file + +if [[ -d ~/.nix-profile/etc/profile.d ]]; then + for file in ~/.nix-profile/etc/profile.d/*; do + [ -f "$file" ] && [ -r "$file" ] && emulate sh -c "source \"$file\"" + done +fi + +[[ -f "~/.profile" ]] && emulate sh -c "source ~/.profile" + +