mirror of
https://github.com/nmasur/dotfiles
synced 2026-11-18 18:19:14 +00:00
starship/jj: set WATCHMAN_SOCK to avoid slow watchman CLI lookup, raise command_timeout
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user