Hey 👋🏻
My name is Christian, an Agile Software Developer, living in Trento (IT).
I write good code at Wonderflow .
Follow me on and Github
More about me.

Prevent accidental quit of iTerm

,
by

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.