zsh: load nix before aliases check for eza
Assisted-by: Claude Opus 5.5 via Claude Code
change pnomlpmpzpnrxywsqszvxwsqlvyvvtmk
commit 9d74c5095e4e3804689dfd300dd06518082c528b
author Alpha Chen <alpha@kejadlen.dev>
date
parent qwtnonpw
diff --git a/.zshrc b/.zshrc
index b4b2d479..d48667bf 100644
--- a/.zshrc
+++ b/.zshrc
@@ -79,6 +79,12 @@ zstyle ':z4h:*' fzf-command fzf
 # perform network I/O must be done above. Everything else is best done below.
 z4h init || return
 
+# /etc/zshrc is skipped because ~/.zshenv sets `no_global_rcs` (z4h), so
+# source the nix-daemon hook here, before anything checks $+commands.
+if [[ -e /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]]; then
+  source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
+fi
+
 # Extend PATH.
 path=(
   .git/safe/../../bin