Disable Command-W in the iTerm
Preferences -> Profiles -> Default -> Session -> Closing, “Prompt before closing if there are jobs running besides”
See the comment section https://apple.stackexchange.com/a/44415
Preferences -> Profiles -> Default -> Session -> Closing, “Prompt before closing if there are jobs running besides”
See the comment section https://apple.stackexchange.com/a/44415