starship/jj: set WATCHMAN_SOCK to avoid slow watchman CLI lookup, raise command_timeout

This commit is contained in:
Noah Masur committed 2026-11-18 09:14:35 -05:00
1 parent a17cb837b0
commit b0d5e699c8
3 files changed
+17

No files matched your search

@@ -57,6 +57,14 @@ in
];
};
# jj's watchman client runs `watchman get-sockname` on every command, and the
# watchman CLI takes ~110ms just to start. Pointing it at the socket directly
# skips that (jj log: 140ms -> 30ms). Caveat: jj then can't auto-start the
# watchman server; if it isn't running, jj silently falls back to a full scan.
home.sessionVariables = lib.optionalAttrs pkgs.stdenv.isDarwin {
WATCHMAN_SOCK = "${config.home.homeDirectory}/.local/state/watchman/${config.home.username}-state/sock";
};
home.packages = [
# Required for the fsmonitor to auto-snapshot
pkgs.watchman