Heyyy 👋🏻 ! My name is Christian, an Agile Software Developer, living in Trento (IT).
I am currently working at Wonderflow.
You can read more about me.

Prevent accidental quit of iTerm


Share on Twitter

You probably ran into a similar situation before: You accidentaly quit an iTerm tab with <Command key> W or <Control key> D while the tests were running, an ssh connection was open, etc..

One way to prevent this is whitelist these commands “Profiles > Session” section, like this:

iterm prevent close

Simply add a command name here, and iTerm will ask for a confirmation before closing the tab.