Skip to content

Instantly share code, notes, and snippets.

@yzhanginwa
Last active November 8, 2025 01:16
Show Gist options
  • Select an option

  • Save yzhanginwa/4241f19da2f2ae098e76044230f1de30 to your computer and use it in GitHub Desktop.

Select an option

Save yzhanginwa/4241f19da2f2ae098e76044230f1de30 to your computer and use it in GitHub Desktop.
I routinely use both iTerm2 and GNOME Terminal. It’s important to define a set of hotkeys that are easy to
remember and do not conflict with system shortcuts. I have not changed the hotkeys for Chrome. The table
below shows the hotkeys I use.
+----------------------+---------------------------------------+---------------------------------------+
| | MacOS | Ubuntu |
| function +-------------------+-------------------+-------------------+-------------------+
| | Chrome | iTerm2 | Chrome | Gnome Terminal |
+----------------------+-------------------+-------------------+-------------------+-------------------+
| |
+----------------------+-------------------+-------------------+-------------------+-------------------+
| create new tab | command + t | command + t | ctrl + t | ctrl + t |
+----------------------+-------------------+-------------------+-------------------+-------------------+
| close current tab | command + w | command + w | ctrl + w | ctrl + w |
+----------------------+-------------------+-------------------+-------------------+-------------------+
| |
+----------------------+-------------------+-------------------+-------------------+-------------------+
| switch to tab 1 | command + 1 | command + 1 | ctrl + 1 | ctrl + 1 |
+----------------------+-------------------+-------------------+-------------------+-------------------+
| switch to tab 2 | command + 2 | command + 2 | ctrl + 2 | ctrl + 2 |
+----------------------+-------------------+-------------------+-------------------+-------------------+
| switch to tab 3 | command + 3 | command + 3 | ctrl + 3 | ctrl + 3 |
+----------------------+-------------------+-------------------+-------------------+-------------------+
| |
+----------------------+-------------------+-------------------+-------------------+-------------------+
| switch to left tab | ctrl + page up | ctrl + page up | ctrl + page up | ctrl + page up |
+----------------------+-------------------+-------------------+-------------------+-------------------+
| switch to right tab | ctrl + page down | ctrl + page down | ctrl + page down | ctrl + page down |
+----------------------+-------------------+-------------------+-------------------+-------------------+
| |
+----------------------+-------------------+-------------------+-------------------+-------------------+
| copy | command + c | command + c | ctrl + c | ctrl-shift + c |
+----------------------+-------------------+-------------------+-------------------+-------------------+
| paste | command + p | command + p | ctrl + p | ctrl-shift + p |
+----------------------+-------------------+-------------------+-------------------+-------------------+
2025/11/07
Ethan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment