Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I know that you can switch tabs with shift cmd [arrow key] in Mac Terminal, but it is painful to reach the arrow key. How can I change the default keybinding?

share|improve this question
    
Not quite programming-related enough for my tastes. –  Dana Mar 12 '09 at 21:00
    
@Dana: It may be: I do not know whether I need to change some rc files such as in the xmodmap case. –  Masi Mar 12 '09 at 21:08
2  
Use the Cmd and Shift keys next to the arrow keys. –  Daniel Beck Sep 29 '11 at 6:24
add comment

migrated from stackoverflow.com Aug 15 '10 at 21:09

This question came from our site for professional and enthusiast programmers.

5 Answers

up vote 38 down vote accepted

enter image description here

share|improve this answer
3  
In what way does this answer the question? (I know the answer, but I don’t see how this helps anyone who didn’t already know how to customize menu item shortcut keys using System Preferences.) –  Chris Page Jun 14 '12 at 23:29
    
@ChrisPage Those are defaults. I haven't set up any special shortcut keys, and they are present in mine. –  Ben Mordecai Jan 31 '13 at 5:33
    
@BenMordecai So, if this answer had a written answer (rather than just a screenshot), it would read “by default there are already command keys that don’t use the arrow keys, so you don’t need to change the default keybinding”? I ask because the question appears to be “How can I change the default keybinding?”, which isn’t mentioned in this, the currently accepted answer. –  Chris Page Feb 1 '13 at 0:44
    
@ChrisPage, well the main question is how to switch tabs efficiently. The OP assumed the answer would have to do with remapping the bindings, but when he saw the screenshot it solved the issue. Your comment gave the impression that this answer had a missing step, namely, remap the key of the menu item, so I was clarifying that the implied step isn't necessary. –  Ben Mordecai Feb 1 '13 at 1:03
    
Ha! That works for Safari and Chrome too. –  daviewales Feb 13 '13 at 14:39
add comment

You can change key bindings for almost all Cocoa apps in the system keyboard preference pane, including Terminal.app.

share|improve this answer
    
I'll try that, thanks! Using the default shortcuts is very cumbersome on a Macbook without mouse. –  user30033 Mar 17 '10 at 10:00
add comment

cmd brace will also switch tabs.

share|improve this answer
add comment

1: Install SIMBL (plugin enabler): http://www.culater.net/software/SIMBL/SIMBL.php

2: Install the TerminalTabSwitching.bundle

git clone https://github.com/dabeeeenster/terminaltabswitching
cp -r terminaltabswitching/TerminalTabSwitching.bundle "/Library/Application Support/SIMBL/Plugins"

3: Restart the Terminal app, and enjoy Cmd+[0-9] tab-switching.

share|improve this answer
add comment

If you don't mind downloading new software, I recommend iTerm 2: http://www.iterm2.com/#/section/home

It not only allows rebinding keys almost arbitrarily plus fast switching between tabs with cmd+TabNumber (or your favorite meta key), but quite a few other nifty features as well.

(I would post a screen shot, but I'm new around here).

share|improve this answer
    
Down-voted because it doesn’t really answer the question, and there’s nothing stopping the user from customizing the shortcuts in Terminal using System Preferences, the usual answer for this type of question. –  Chris Page Feb 1 '13 at 0:47
add comment

protected by nhinkle Jun 28 '11 at 20:23

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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