starship prompt adds 300ms to every command in a big git repo
starship 1.17, bash 5.1, Ubuntu 22.04. In a monorepo with about 20,000 files, every prompt takes roughly 300ms — STARSHIP_DURATION shows the git module is the slow part, presumably running git status each time. Can I make it skip the dirty check in large repos but still show the branch name? The delay is genuinely annoying when I'm moving around the tree. Running STARSHIP_DURATION=1 confirms it's the git module and nothing else, so I'm not chasing the wrong thing.
4 replies