`iterm2` is a GPL terminal emulator available on macOS.
Questions tagged [iterm2]
859 questions
21
votes
5 answers
How make Vim fill Terminal window
When running Vim in a Terminal, the vim window does not fill the entire screen space, which is very irritating when the terminal background color radically differs from vim's. Admittedly, one might want to keep them somewhat in sync, but given that…

oarfish
- 4,116
- 4
- 37
- 66
20
votes
2 answers
Vim can't scroll in iTerm2
My vim can't scroll in iTerm2 even set mouse=a has added in .vimrc file.
Within tmux, however, vim's scroll function works correctly.
What's wrong with my vim?

Douglas Su
- 3,214
- 7
- 29
- 58
18
votes
2 answers
How to stop ZSH from merging history for all closing tabs?
I use combination of zsh with oh-my-zsh and iTerm2 for development on Mac.
I'm frustrated with the following issue:
N tabs opened
close the terminal
reopen it (with Use system Window Restoration Setting)
the history from all previously opened…

orkenstein
- 2,810
- 3
- 24
- 45
17
votes
3 answers
How do I configure iTerm2 to open URLs in a specific browser?
I recently changed my default browser from Chrome to Safari, but I still do development in Chrome. I'd like URLs in iTerm2 to open up in Chrome, but now they open in Safari since its my system default.
Is it possible to change this?

Sam Selikoff
- 12,366
- 13
- 58
- 104
17
votes
3 answers
Docker shell completion on OSX iTerm2 oh-my-zsh
I am trying to get Docker shell completion on this stack (OSX iTerm2 oh-my-zsh)
I followed this guide -> https://docs.docker.com/compose/completion/
First I executed this
$ mkdir -p ~/.zsh/completion
$ curl -L…

agusgambina
- 6,229
- 14
- 54
- 94
16
votes
2 answers
npx: the shell-auto-fallback argument has been removed
I honestly don't remember what I last installed on my machine, I believe it was brewing gatsby-cli. Anyway, since yesterday morning my terminal has been giving me the following error when I open a new instance or reset the terminal (open a new tab,…

Mike Earley
- 1,223
- 4
- 20
- 47
16
votes
2 answers
Toggle Opacity with HotKey in Terminal/iTerm
Is there any way to set up a hotkey to change the opacity in either the terminal or iTerm? I usually use a low percentage opacity and it would be nice to be able to toggle on and off quickly.
EDIT: Cmd + U does essentially the same thing without…

Francis Bongiovanni
- 357
- 3
- 9
16
votes
1 answer
iTerm2 Disable Middle Click Paste
How can I disable middle click paste in iTerm 2. I use MiddleClick to enable three finger tap on my MacBook Pro. When in iTerm2 I often hit the touchpad with my wrist which triggers a middle click paste in iTerm2 and a creates mess of code in my…

Leo Net
- 777
- 6
- 15
16
votes
1 answer
iTerm2 to attach to tmux session using tabs instead of windows?
I got tmuxinator to work with iTerm2 the following: https://stackoverflow.com/a/19747819/1009332
However, each tab initially opens in a different window. Is there any way to attach to an existing tmux session using tabs rather than new…

justingordon
- 12,553
- 12
- 72
- 116
15
votes
2 answers
Highlight specific keywords in the terminal as they appear
In iTerm2 you can create triggers that highlight a line if your regex matches. This is great for some cases but I was wondering if it was possible to highlight only a word on a specific line.
The purpose of this is to help read my server logs where…

mikeymurph77
- 752
- 1
- 11
- 28
15
votes
1 answer
Byobu mouse scrolling - [OSX + Iterm2]
I am trying to enable the mouse scrolling functionality in my local (non-ssh) byobu installation.
What I have tried doing :
Pressing F7 and scrolling with the mouse results in the following
Enabled the "Save lines to scrollback option" in…

yarco
- 172
- 7
14
votes
0 answers
How do I import a .terminal profile in Iterm2?
If I have a .terminal profile - created with the default Terminal app for Mac - how do I import it in Iterm2 ?

nicdelillo
- 517
- 5
- 13
14
votes
2 answers
ZSH "command not found: z"
iterm2
ohmyzsh
In 'zsh' I can't use 'z' to search folders, appears command not found: z
I try to run
source "$(brew --prefix)/etc/profile.d/z.sh"
and
source /usr/local/etc/profile.d/z.sh
but doesn't work

Ivan Camilito Ramirez Verdes
- 1,131
- 3
- 11
- 16
14
votes
2 answers
How do I invert the color scheme on iterm2?
I'm using iterm2 (v3.0.14) on Mac Sierra. How do I invert the color scheme on my terminal? That is, right now, the default is a black background with white lettering, and I would prefer a white background with black lettering. Note that I don't…
user7055375
14
votes
2 answers
How to access Iterm2 from intellij
I want to configure the terminal console in "IntelliJ Idea 15" IDE to access iterm2 on my MacOS. Tried the steps mentioned here https://www.jetbrains.com/help/idea/2016.3/working-with-embedded-local-terminal.html
But it shows an error as…

C V
- 209
- 1
- 3
- 13