When I right-clicked a folder and choose the services -> New iTerm2 Window Here option in the menu, I am getting two iTerm2 windows like this.

enter image description here

But I don't need that root level terminal here (The right side terminal of the image), because I only need this folder path terminal only. How can I stop this behavior?

  • When you open iTerm2 from Applications, have you 2 windows or only one?
    – user415185
    May 7, 2021 at 4:24
  • Do you want it gone? Canonical ⌘ + W to close active window. May 7, 2021 at 4:43
  • 1
    This happens when I try to open Item2 on folder right-click the folder and when I choosing the iTerm2 Window Here option May 7, 2021 at 7:30
  • 1
    At first glance and based on my understanding of circumstances isin’t it expected behavior? You give command for a new window and you get new window in addition to existing one? May 7, 2021 at 9:23
  • 1
    @AivarPaalberg yes you got it right. I want only one window for that current folder, but with that, it is opening a new blank window with a root-level path. It is unexpected for me. Why it is opening that right side window with the root-level path in it? May 8, 2021 at 4:57

2 Answers 2


There is open issue iterm2 opens two window or two tabs when launched from services where possible workarounds are described (also root cause of the problem as well).

From productivity point (if you end in shell anyway) you could consider switching to console based file manager (like vifm, ranger, nnn, Midnight Commander etc). You will get productivity boost from relying on keyboard only. There is also command-line fuzzy-finder fzf which could be handy.


I found a solution that works, I left iTerm2 Settings > General > Startup as Use System Window Restoration Setting and also left Advanced > Enable session restoration on. I changed the setting under Advanced > Open a window at startup? to No. Now everything works as you would expect, I startup iTerm2 and it opens one window, I quit and open a folder from Finder in iTerm2 and it starts with that directory and only one window. Hope it helps!


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .