Commit 91e7653ded4e

Vincent Demeester <vincent@sbr.pm>
2026-02-24 11:16:43
fix(zsh): resolve symlink for lazyworktree functions
Used :A modifier to resolve NixOS profile symlinks before deriving the package prefix, so functions.zsh is found.
1 parent ad84079
Changed files (1)
dots
config
dots/config/zsh/tools/lazyworktree.zsh
@@ -2,7 +2,8 @@
 has lazyworktree || return
 
 # Source shell functions (fast: ~0.4ms)
-local lw_functions="${commands[lazyworktree]:h:h}/share/lazyworktree/functions.zsh"
+# Resolve symlink for NixOS where commands[] points to /etc/profiles/per-user/...
+local lw_functions="${commands[lazyworktree]:A:h:h}/share/lazyworktree/functions.zsh"
 [[ -f "$lw_functions" ]] && source "$lw_functions"
 
 # Named repo shortcuts