--- title: iTerm2 homepage: https://iterm2.com/ tagline: | iTerm2: a terminal emulator for macOS that does amazing things. --- ## Cheat Sheet > The only bad thing about iTerm2 is that it's so seamless and intuitive that > you quickly forget why you started using it - it just fades into the > background. iTerm2 supports a lot of nifty features, including: - Excellent [themes](https://iterm2colorschemes.com/) - Hold ⌘ to make links clickable - Per-user & per-host sessions - Lots of [fun little utilities](https://www.iterm2.com/documentation-utilities.html) - Better tmux / screen support - GPU-accelerated **Important**: Unlike most packages, iTerm2 will be installed to `~/Applications`. ### How to make the best of iTerm2 Open Preferences with Cmd ⌘ + , ```md - Appearance - Tabs - Preserve window size when tab bars shows or hides - Profiles - General - Command - Custom Shell (see the Fish Cheat Sheet: ) - Colors - Color Presets... (see theme recommendations below) - Text - Font (see the Nerd Fonts Cheat Sheet: ) - Anti-Aliased - Terminal - Notifications - Check Silence bell - Uncheck Flash visual bell - Advanced - Automatic Profile Switch (see notes below) - Advanced - (this is where you can reset prompts) ``` ### How to set up profile switching I suggest using different profiles: - Default (no matching hosts) - Local (matching my local `hostname`) - Remote (matching `app@` for VPSes and cloud environments) - Prod (matching specific `app@hostname`s for production systems) - Root (matching `root@`) You need to "Install Shell Integration" on each host for profile switching to work. !["Install iTerm2 Shell Integrations"](https://i.imgur.com/PRuQViC.png) !["Enable iTerm2 Profile Switching"](https://i.imgur.com/syRmikE.png) ### Which themes are the best? There are [216+ color schemes](https://iterm2colorschemes.com/). Here's my shortlist. I chose them because they are easy on the eyes and distinct. Two-finger click "Save Link As" (or similar) to download. - Tomorrow Night ![](https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/screenshots/tomorrow_night.png) - Firewatch ![](https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/screenshots/firewatch.png) - Dracula ![](https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/screenshots/dracula.png) - Elemental ![](https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/screenshots/elemental.png) - Ubuntu ![](https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/screenshots/ubuntu.png) - cyberpunk ![](https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/screenshots/cyberpunk.png) - Hivacruz ![](https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/screenshots/hivacruz.png) - Builtin Solarized Dark ![](https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/screenshots/builtin_solarized_dark.png) - ToyChest (not for the colorblind) ![](https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/screenshots/toy_chest.png) If you're using [fish](https://webinstall.dev/fish) (as you should be!), be sure to set your shell color theme to the same or similar: ```bash fish_config colors ```