Can we have an indicator in Terminal that shows what worktree we are currently in? I keep putting the wrong items into terminal when I am in a worktree that it doesn’t belong in. Thanks
Since these are just regular git worktrees, the simplest way to get an always-visible indicator today is to have your shell prompt label them for you.
If you already use a git-aware prompt (Starship, oh-my-zsh, powerlevel10k), you get this for free. The branch name shows up automatically, and the branch is the most meaningful label anyway, since the worktree folder names are auto-generated.
If you’d prefer an explicit badge that appears only when you’re inside a worktree, add the following to your shell profile.
You totally rock!! Thanks. Having my Grok Build die on me last night was terrifying. I didn’t realize that I have to manually clean the .bin and .obj folders.