Yaya
Yaya

Reputation: 1

How to close iterm2 tabs using exit command?

How to close the tab using exit command and don't show Broken Pipe? How to set it?

Broken Pipe

Upvotes: 0

Views: 2785

Answers (2)

Brian
Brian

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

Vignesh Raja
Vignesh Raja

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

Related Questions