Undo OS X terminal window split

75

24

I constantly split my terminal windows accidentally by pressing Cmd+D (it's so close to Cmd+F). I have no idea how to undo this. Any ideas?

Peter Berg

Posted 2013-10-11T05:14:50.377

Reputation: 875

See also How do I disable Cmd-D in Terminal?.

– sds – 2017-03-28T14:36:06.057

Answers

96

To undo the split, press Shift+Cmd+D (you can also do it from the View > Close Split Pane menu option).

If you wish to reassign the keyboard shortcut for View > Split Pane (Cmd+D) to something else to prevent anything from happening when you accidentally press Cmd+D, you can do it by going to System Preferences > Keyboard > Keyboard Shortcuts, adding the Terminal.app and entering the menu title (Split Pane) with a different shortcut.

Terminal keyboard shortcuts (from dashkards): Terminal keyboard shortcuts

Also see:
Apple - Create keyboard shortcuts for applications

M K

Posted 2013-10-11T05:14:50.377

Reputation: 2 414

1I'm on Sierra and they changed the keyboard settings. Not sure how to do this – Joe Heyming – 2018-01-31T21:54:54.243