Prevents tab closure failures in iTerm by capturing session patterns before directory changes or deletions.
This skill provides a specialized implementation pattern for shell scripts that manage iTerm tabs, specifically addressing a common race condition where terminal titles update automatically upon directory changes. By capturing the tab's identification pattern early in script execution, it ensures that scripts can reliably close their own tabs even after deleting git worktrees or moving to different directories. This pattern is essential for developers using automated cleanup scripts who want a seamless terminal experience without orphaned tabs or failed automation warnings.
主要功能
01Race condition prevention for iTerm automation
02Proactive tab pattern capture logic
030 GitHub stars
04Non-fatal failure handling strategies
05Standardized shell scripting patterns
06Optimized git worktree cleanup workflows
使用场景
01Automating tab cleanup after merging git worktrees
02Ensuring terminal closure in self-destructing scripts