Skip to content
Mac Depot
Mac Hosting Online

Complete Guide to iTerm2

futuristic iterm terminal cyberpunk setting

iTerm2 is a popular, free, open-source terminal emulator for macOS and you can find the source code on GitHub. It is a more customizable emulator that replaces the default Terminal app that comes with your Mac. Licensed under GPL-2.0-or-later, it works on Macs with macOS 10.14 or newer.

iTerm2 is a powerful terminal application for Mac that allows you to interact with your computer using text-based commands instead of clicking through menus. It provides an environment where you can run programs, manage files, execute scripts, work with tools like Git and Python, and connect to remote servers.

Set up is rather straightforward; you can either visit the official iTerm website and download the latest version or through GitHub to build from source, however iTerm notes that development builds may be less stable than official releases. There are no manual prerequisites, make setup will install Homebrew, Xcode, Rust, and all other dependencies, prompting for confirmation before each privileged step, you can also skip all confirmation prompts by using make dangerous-setup instead. 

Key Features

##

ITerm is a more robust environment than the native default terminal app that comes with Mac. Mike Rourke, software engineer at M1, called it an “excellent more full-featured Terminal”. The open-source terminal emulator has a lot of features, every conceivable desire a terminal user might have has been foreseen and solved.

Sessions and Persistence

Save sessions and keep them alive through crashes, SSH disconnects and upgrades with iTerm2’s tmux integration and session restoration. 

tmux Integration

Native iTerm2 windows/tabs replace tmux's text-based interface. Run tmux -CC and tmux windows become real macOS windows.

Session restoration

Sessions run in long-lived server processes. If iTerm2 crashes or upgrades, your shells keep running. When iTerm2 restarts, it reconnects to your sessions exactly where you left off.

Windows, Tabs, Panes and Profiles

Split panes, named tabs, a Quake-style hotkey window and profiles with automatic switching let you organize your iTerm2 workspace around how you work. 

Split Panes

Divide a tab up into multiple panes, each one showing a different session. You can slice vertically and horizontally and create any number of panes in any imaginable arrangement.

Quake-Style Dropdown Terminal

Register a hotkey that brings iTerm2 to the foreground when you're in another application. A terminal is always a keypress away. You can choose to have the hotkey open a dedicated window. This gives you an always-available terminal (like Visor, Guake, or Yakuake) at your fingertips.

Automatic Profile Switching

Terminal appearance changes automatically based on hostname, username, directory, or running command. SSH to production? Background turns red. Different environments get different visual contexts.

Configurable Status Bar

Per-session status bar showing git branch, CPU/memory graphs, current directory, hostname, custom interpolated strings, or Python API components.

Shell Awareness and Automation

Shell integration, triggers and the Python API let iTerm2 understand your commands and automate the repetitive parts. 

Shell Integration

Deep shell awareness that tracks commands, directories, hostnames, and usernames. Enables click-to-download files via SCP, drag-and-drop uploads, command history per host, recent directories by "frecency," and marks at each prompt.

Triggers

Regex patterns that fire actions when matched: highlight text, run commands, send notifications, open password manager, set marks, or invoke Python scripts.

Captured Output

Use iTerm2 as your IDE. When you build a big project, you used to have to pore over its output to find warnings and errors. No more! With the captured output feature, iTerm2 finds those messages (based on regular expressions you define) and shows them in the toolbelt. You can navigate right to each message. A double-click will run a coprocess of your choice, which can (for example) open the file in your favorite editor right to the line with the error.

Python Scripting API

Full automation and customization via Python. Create custom status bar components, triggers, menu items, or entirely new features.

Navigation and Search

Search across tabs, select text smartly, use copy mode and instantly replay, and scroll back through long history without leaving the keyboard. 

Search

iTerm2 comes with a robust find-on-page feature. The UI stays out of the way. All matches are immediately highlighted. Even regular expression support is offered!

Smart Selection

Quad-click selects semantic objects (URLs, file paths, email addresses, quoted strings). Right-click for context actions. Cmd-click to open.

Copy Mode

Vim-like keyboard selection. Navigate and select text without touching the mouse. Works with marks to jump between command prompts.

Instant Replay

Scrub backward through terminal history to see exactly what was on screen at any moment, with timestamps. Perfect for catching fleeting errors.

Input, Keyboard and Pasting

Natural text editing shortcuts, autocomplete, paste history and a built-in password manager making typing in iTerm2 faster. 

  • Autocomplete
  • Paste History
  • Advanced Paste
  • Password Manager

Color, Themes and Display

Choose color schemes and themes, switch between light and dark mode, adjust fonts and transparency, and get 24-bit true color, Unicode and mouse reporting support. 

  • 24-bit color
  • Readability
  • Mouse Reporting
  • Multi-Lingual
  • Unixyness
  • Configurability

###

AI, Images and Web

iTerm2 also goes beyond the traditional terminal with AI chat, inline images (imgcat) and a built-in web browser.

AI Chat

Built-in LLM chat window that can optionally interact with terminal contents. Link sessions to get context-aware help, run commands on your behalf, or explain output with annotations.

Inline Images

Display images (including animated GIFs) directly in the terminal. Use imgcat to view photos, charts, or visual output without leaving your workflow.

Built-in Web Browser

Browser profiles integrate web browsing into iTerm2's window/tab/pane hierarchy. Copy mode, triggers, AI chat, and other terminal features work in browser sessions.

iTerm2 vs Ghostty vs Terminal

##Choosing a terminal on Mac comes down to what you need beyond the basics. Apple’s built-in Terminal handles everyday command-line work, iTerm2 adds deep features like split panes and shell integration, and Ghostty is a newer open-source alternative that also runs on Linux. The table below compares all three on price, licensing, platforms and key features, so you can quickly decide whether iTerm2 is actually worth installing for your workflow.

iTerm2 vs Ghostty vs Apple Terminal: feature comparison
Feature iTerm2 Ghostty Terminal (Apple)
Price Free Free Included with macOS; no separate purchase
Open source Yes — GPL v2 Yes — MIT license No — Apple's proprietary app
Platforms macOS macOS and Linux macOS
Split panes Yes — horizontal and vertical splits, each running an independent terminal session Yes — independent terminal splits, alongside windows and tabs Limited — splits show different views of the same session, not independent shells
Hotkey window Yes — a configurable global shortcut can show a dedicated terminal window Yes — a drop-down "Quick Terminal", supported on macOS and compatible Linux Wayland desktops No — no built-in dedicated drop-down or hotkey window
Shell integration Yes — optional integration adds prompt navigation, command history, directory tracking and remote file-transfer conveniences Yes — automatic integration for supported shells, including working-directory reporting and prompt navigation Basic — automatic prompt marks and navigation, rather than an equivalent advanced integration suite
Best for Mac power users who want extensive terminal features and advanced workflows Users who want a GPU-accelerated terminal with native interfaces on both macOS and Linux Everyday command-line tasks and scripting without installing another terminal app

Sources: iTerm2 · Ghostty · Apple Terminal User Guide. Last verified November 2026.

Does iTerm 2 work on Windows?

##

No. iTerm2 is built for macOS only, and there is no official Windows version. If you want the real iTerm2 on a Windows PC, the practical route is to run it on a Mac you connect to remotely. iTerm2 is a native macOS app and depends on Apple's frameworks, so it can't be installed on Windows. Installing macOS in a virtual machine on a Windows PC isn't a clean workaround either, because Apple's license generally limits macOS to Apple hardware.

A cleaner option is to rent a dedicated Mac in the cloud. A service like MacDepot offers bare metal Macs, which means a physical machine that only you use rather than a shared virtual machine. You get admin access, SSH and remote desktop, with daily, weekly or monthly plans and no contract. 

Here is how it works: 

1. Rent a Mac and get your connection details.

2. Connect from your Windows PC with a remote desktop app to see the full macOS desktop.

3. Install iTerm2 on the Mac, either from the iTerm2 website or with `brew install --cask iterm2`, and use it as you would on a local Mac. Keep in mind that iTerm2 runs on the remote Mac, so you are working through a remote desktop session. Expect some latency, and your files and shortcuts (including a global hotkey) behave differently than on a local machine. SSH on its own gives you a shell on the Mac, but not the iTerm2 interface.

Source: