Reputation: 1
How to close the tab using exit command and don't show Broken Pipe? How to set it?
Upvotes: 0
Views: 2785
Reputation: 11
Session -> Edit session, Session tab, ensure 'Automatically close a session when it ends' is checked; and then, General tab, ensure Default profile is selected (or whichever profile you're wanting to set), and click 'Click to Set'.
Upvotes: 1
Reputation: 8761
The error you get is because the session had short life.
Go to iTerm2 Preferences -> Advanced -> Warnings section -> (Last option in the section) Warn about short-lived sessions that live less than this many seconds.
The value is configured as 3, by default. So if you don't need to show broken-pipe for immediately closing sessions, make it as 0.
Upvotes: 0