From 35693c97829b7413f9fc52cf08e88dbdabe92339 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Fri, 11 Jul 2025 15:40:59 +0800 Subject: [PATCH] feat(starship): use "jj root" to determine whether to show jj module --- modules/cli/shell/zsh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cli/shell/zsh.nix b/modules/cli/shell/zsh.nix index 63472f4..6921816 100644 --- a/modules/cli/shell/zsh.nix +++ b/modules/cli/shell/zsh.nix @@ -44,7 +44,7 @@ lib.my.makeSwitch { jj = { ignore_timeout = true; description = "The current jj status"; - detect_folders = [ ".jj" ]; + when = "jj root"; symbol = " "; command = '' jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template '