Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In OS X, if you open new windows, you can easily switch between them with Cmd-1, Cmd-2, Cmd-3, etc.

You can also cycle between tabs, using Cmd-Shift-{ and Cmd-Shift-}. (or Cmd-Shift-Left and Cmd-Shift-Right)

But is there a way to jump straight to a particular tab, like you can with windows? e.g. Cmd-Shift-3 to jump to the third tab? (That's not it, of course.)

I'm pretty sure it's impossible out of the box, but what if I'm willing to write some AppleScript to make this work?

share|improve this question
Just for reference: Shift-Command-Left/Right Arrow also switch tabs. And in Mac OS X Lion 10.7, you can use a three-finger swipe to switch tabs. – Chris Page Sep 17 '11 at 10:14
Three-finger swipe does not work in Mavericks (for me). – SabreWolfy Feb 13 '14 at 12:05
<kbd>Cmd</kbd>-<kbd>1</kbd>, etc. do not work in Mavericks. – SabreWolfy Feb 13 '14 at 12:06
up vote 5 down vote accepted

Ditch Terminal and use iTerm. It lets you do this and is, to me anyway, a bit more useful.

share|improve this answer
Winner! I just installed it and I already love iTerm's configurability (though it is a bit complex...) – Dan Fabulich Apr 19 '10 at 2:21
With iTerm, the answer would be command + T, and control + tab, just like a browser. command + W closes a tab. – Droogans May 15 '13 at 19:13

The key combination is: Shift-Cmd-Left or Right

share|improve this answer
With this I no longer have a need for iTerm :) – slott Feb 19 '15 at 7:06

It can be done from System Preferences > Keyboard > Shortcuts > App Shortcuts > click + > select and add the option title as it appears in the Terminal menu, which can be:

  • Select Next Tab (on Mavericks and earlier)
  • Show Next Tab (on Yosemite)

Yosemite menu items

Note: As you probably realize, you can do this with absolutely any OSX app that has a menu with options, even if originally the app defined no shortcut for the option.

This kind of shortcuts are not equivalent to using native app shortcuts. What OSX is in fact doing is triggering the provided menu option via the label - you'll notice that while you press the keys the corresponding menu item will flash in the menu bar.

share|improve this answer

I've been using Spark for years. It lets you overwrite shortcuts of any application, such as Terminal and Safari. I use it to make both programs switch tabs with command+n where n is the tab number, from 1 to 9.

After you download and copy to /Applications, start it, click All Applications' Hotkeys to expand the menu on the left, and click on the plus sign to add new application.

Add Terminal (from /Applications/Utilities/ Next thing is to create the shortcuts: click File->New HotKey->AppleScript (or just hit command+1). Click on the shortcut area and hit command+1, name it tab1 and use this code:

tell front window of application "Terminal" to set selected tab to tab 1

Repeat it for command+2 to command+9. If you want the ability to vertically maximize the terminal, create a new shortcut like command+shift+m, name it whatever you want and use this code:

tell application "Finder"
    set _b to bounds of window of desktop
end tell

tell application "Terminal"
    tell front window
        set {_x, _y, _w, _h} to (get bounds)
        set _vz to item 4 of _b
        set bounds to {_x, 10, _w, _vz}
    end tell
end tell

Same thing for Safari on tab shortcuts, but the code is a bit different:

tell front window of application "Safari" to set current tab to tab 1

Honestly, I can't use either Terminal or Safari without this.

share|improve this answer
You can use osacompile to save scripts like this quickly: for n in {1..9} -1; do osacompile -e "try" -e "tell app \"Terminal\" to tell window 1 to set selected tab to tab $n" -e "end" -o Select\ Tab\ $n.scpt; done. Wrapping the scripts in try blocks prevents error dialogs. Spark was last updated in 2008; another application that allows assigning application-specific shortcuts to scripts is FastScripts. – user495470 Jul 16 '12 at 18:23

Tab Switching in Terminal is the only way that I know. I haven't tested it with Snow Leopard so YMMV.

Or you can use Screen and switch "tabs" with Ctrl-A,n and Ctrl-A,p or Ctrl-A, 0-9 to switch directly to one.

share|improve this answer
This no longer appears to work in Snow Leopard. – Dan Fabulich Apr 19 '10 at 2:20

Copied from How can I change the keyboard shortcut for switching tabs in Mac Terminal?

1: Install SIMBL (plugin enabler):

2: Install the TerminalTabSwitching.bundle

git clone
cp -r terminaltabswitching/TerminalTabSwitching.bundle "/Library/Application Support/SIMBL/Plugins"

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

FYI: It you received something like plugin is not verified in terminal version # (a number) when you opened your terminal again, maybe the following information would help.

(1) Open

/Library/Application\ Support/SIMBL/Plugins/Terminal/TerminalTabSwitching.bundle/Contents/Info.plist

using your favorite text editor under sudo.

(2) Search For <key>MaxBundleVersion</key>.

(3) Change <string>280</string> at next line to your terminal version number or higher like <string>300</string>. Save.

(4) Quit terminal and reopen it. Hopefully that prompt would disappear and you can use Cmd+[0:9] for tab switching.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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