Are there any keyboard shortcuts to switch between tabs in terminal?
3 Answers
Default shortcuts
These are the shortcuts listed under the Terminal -> Window menu. On older MacOS versions they were called Select Next Tab and Select Previous Tab.
Show Next Tab: ⌘+} (selects the tab to the right of your current tab)
Show Previous Tab: ⌘+{ (selects the tab to the left of your current tab)
I think it would make more sense to say ⌘+⇧+] / [, since that's actually what you type.
How to set custom Terminal shortcuts?
Since there are menu items that these shortcuts trigger, you can use System Preferences-> Keyboard-> Keyboard Shortcuts-> App Shortcuts to reassign the shortcuts to whatever you want.
Click + to add a shortcut:
Applicationfield - selectOther...(at the bottom) and navigate toApplications -> Utilities -> Terminal.app.Menu Titlefield - type the name of your shortcut, e.g. Show Next Tab (you can find the exact shortcut name in theTerminal -> Windowmenu, where the default shortcuts are listed)Keyboard Shortcutfield - press your custom shortcut keys.
- 103
- 28,910
⌘ + ⇧ + arrow keys is also a valid option.
Enjoy!
- 14,187
- 311
-
4
-
-
-
1Works great for me on Yosemite. This is a far better answer for people with non-english keyboards where the braces are hard to type. – Klas Mellbourn Dec 21 '14 at 19:16
-
Works for me on Yosemite as well. You can use Command + arrows to switch terminal windows and add shift to switch tabs inside the window. – Milan Babuškov Jan 09 '15 at 09:33
If you want to choose your own shortcut for switching tabs in terminal:
open /System/Library/PreferencePanes/Keyboard.prefPane/
Application Shortcuts > (Add) > Application (Other...) > Applications/Utilities/Terminal
Menu titles:
Select Next Tab
Select Previous Tab
I've chosen, for example, ⌘+ALT+⇦ and ⌘+ALT+⇨.
- 226
-
Is
Select Next Taba reserved command on Mac? I mean, I don't get how the OS will understand this. – IgorGanapolsky Apr 08 '16 at 14:45 -
1Yea, this is what I would like to set my Terminal shortcut to be too since every other application with tabs uses this. But it doesn't work when I add it in shortcuts.... How does mac know what command to do? – jaredwilli May 18 '16 at 12:22
-
If a new OS X version has changed the
Terminalapp menu item titles, then change it accordingly. – Jose Alban May 18 '16 at 12:59
ShowNext Tab. – bassplayer7 Jan 11 '16 at 14:57