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" + +