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?

up vote 82 down vote accepted

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

  • I'm on Sierra and they changed the keyboard settings. Not sure how to do this – Joe Heyming Jan 31 at 21:54

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.