How do I switch tabs when using iTerm2 with Z shell

Solution 1:

Use the keyboard shortcuts Shift + Command + ] and Shift + Command + [ to switch to next and previous tabs respectively. The same are also available under iTerm2 Menu Bar → Window menu.

The keyboard shortcuts remain the same irrespective of the shell you are running.

Solution 2:

You can view/update current key bindings if you open the Preference window from the menu bar iTerm2 > Preferences > Keys > Key Bindings

For me, command+/ as well as command+shift+[/] (as mentioned by previous answer) work by default.

I am using iTerm2 (3.3.7) on macOS Catalina (10.15.2)

Solution 3:

On the trackpad: two-finger swipe, left and right will scroll through the tabs.

On the keyboard:

Shift + Command + [ (scroll left)

Shift + Command + ] (scroll right)

The keyboard commands loop through tabs, whereas the trackpad gesture does not.