From aba70d46a9c4652773e1b1c720ccb817f3dfdbbd Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Fri, 11 Jul 2025 15:27:24 +0800 Subject: [PATCH] feat(starship): only show git status if not in a jj repo --- modules/cli/shell/zsh.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/cli/shell/zsh.nix b/modules/cli/shell/zsh.nix index bc1d40d..63472f4 100644 --- a/modules/cli/shell/zsh.nix +++ b/modules/cli/shell/zsh.nix @@ -72,11 +72,17 @@ lib.my.makeSwitch { command = "jj root >/dev/null 2>&1 || starship module git_branch"; description = "Only show git_branch if we're not in a jj repo"; }; + git_status = { + when = true; + command = "jj root >/dev/null 2>&1 || starship module git_status"; + description = "Only show git_status if we're not in a jj repo"; + }; }; git_state.disabled = true; git_commit.disabled = true; git_metrics.disabled = true; git_branch.disabled = true; + git_status.disabled = true; nix_shell.disabled = true; }; };