Commit f3e812118fa0

Vincent Demeester <vincent@sbr.pm>
2026-02-17 19:33:07
fix(zsh): handle empty dirs in worktree discovery
Empty org directories (e.g. github.com/NixOS/) caused glob failures that aborted .zshrc sourcing, preventing prompt, autoloaded functions, and all subsequent config from loading.
1 parent 0fd472f
Changed files (1)
home
home/modules/lazyworktree.nix
@@ -87,6 +87,7 @@ in
               #   wgh_<org>_<repo> → jump to github.com/org/repo (nested structure)
               #   wt_<prefix>     → fzf picker for repos in that directory
               _lazyworktree_discover_aliases() {
+                setopt local_options nullglob
                 local -A repo_dirs=()  # Track repo names to detect collisions
                 local base_dirs=(
                   ${lib.concatStringsSep "\n    " (