feat(starship): use "jj root" to determine whether to show jj module

This commit is contained in:
2025-07-11 15:40:59 +08:00
parent aba70d46a9
commit 35693c9782

View File

@@ -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 '