Set up automatic iTerm2 tab titles for my Claude Code worktree workflow. Follow these steps exactly.
Write the following to ~/.local/bin/tabtitle verbatim, then chmod +x it:
#!/usr/bin/env bash
# Rename this iTerm2 tab to the current worktree name (or $1 if given).
# Uses AppleScript, so it works from captured subprocesses like Claude Code tools.