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? – Jean_JD May 7 at 4:24
  • Do you want it gone? Canonical ⌘ + W to close active window. – Aivar Paalberg May 7 at 4:43
  • What version iTerm 2 are you using? It sounds like you may have more than one Profile being loaded. You can check the profiles in the menubar under Profiles – akostar May 7 at 4:46
  • @Jean_JD Only one. – Sahan Pasindu Nirmal May 7 at 7:26
  • 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? – Aivar Paalberg May 7 at 9:23

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.

You must log in to answer this question.

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