Get Slide-Out Terminal Access in MacOS by Keyboard Shortcut with iTerm

Jul 21, 2023 - Leave a Comment

Set a hotkey for instant command line access with iTerm on Mac

The iTerm app for Mac is a great terminal alternative that has some unique features, one of which is that you can setup a hotkey or keyboard shortcut to instantly access an iTerm2 terminal as a slide-out command line from the top of the screen, from anywhere in MacOS.

We’ll be using the iTerm2 app for this article, rather than the default Terminal app on Mac, because while you can use this trick to open Terminal by keyboard shortcut, it won’t slide down from the top of the Mac screen, or disappear, in the same way as what is available through iTerm. You can get iTerm2 for free from the iterm2.com site here, or with brew cask.

How to Use iTerm as a Slide-out Terminal from Top of Mac Screen

You can instantly access an iTerm terminal that slides down from the top of the screen by setting a hotkey or keyboard shortcut, here’s how to do this:

  1. Open the iTerm app on the Mac
  2. Pull down the iTerm menu and choose “Settings”
  3. Go to “Keys”
  4. Go to the “Hotkey” tab
  5. Click on “Create a Dedicated Hotkey Window”
  6. How to setup a hotkey for slide-out terminal access in iTerm2 for Mac

  7. Click into “Hotkey” and set your hotkey by pressing the keyboard shortcut you wish to use to access the iTerm terminal from anywhere, in the example here we chose control+option+command+T
  8. How to set a keyboard shortcut for immediate command line access with iTerm2

  9. Set any other preferences as desired, then click on “OK”
  10. Test out your new universal terminal hotkey shortcut by pressing your chosen keyboard shortcut (control+option+command+T if you followed our example) and the the terminal will slide out from the top of the Mac screen

Access the command line from anywhere with iTerm on Mac with a hotkey trick

You can access this terminal console from anywhere on the Mac by using this keyboard shortcut, whether you’re in Finder, Safari, Chrome, Notes, UTM, VMWare, Xcode, or any other app.

Similar tricks have been around for a while with different versions of iTerm, and we covered something like this over a decade ago with a different app for older versions of Mac OS X called TotalTerminal, and even with iTerm2 itself, though configuration was slightly different then.

If you routinely use the command line for quick tasks, or you simply want an easily accessible instant terminal from anywhere on the Mac, this iTerm hotkey trick may be the perfect solution for you. Check it out, and see if it fits well into your workflow.

.

Related articles:

Posted by: Paul Horowitz in Command Line, Mac OS, Tips & Tricks

Leave a Reply

 

Shop on Amazon.com and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site