Friday, September 6, 2013

Disable "Close Window" (Cmd+W) for iTerm

Searching for this gives several results that didn't satisfy me, e.g.
http://apple.stackexchange.com/questions/44412/disable-command-w-in-the-terminal
(a "global" setting)
or
https://groups.google.com/forum/#!topic/iterm2-discuss/j6UDxO5_CXc
(generally having to confirm the closing)

So I propose this:
Open Preferences>Keys
At the bottom of "Global Shortcut Keys" click "+", then type Cmd-W and leave the default Action "Ignore".
You're set!