Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make iTerm2 appear on the current screen?

Under Preferences -> 'Keys' It is possible to tick Show/hide iTerm2 with a system-wide hotkey.

However iTerm always appears on the main display (monitor) instead of where the cursor currently resides.

e.g. if I have three monitors, and am working on the third screen, the hotkey makes iTerm appear on first monitor, instead of where I am currently working.

Any advice how to solve this please?

UPDATE:

The bug strikes back again in v.3.1.6. If any workarounds are known, please share.

like image 594
Houman Avatar asked Mar 27 '15 10:03

Houman


People also ask

How do I switch between windows in an iTerm2?

iTerm2 allows you to divide a tab into many rectangular "panes", each of which is a different terminal session. The shortcuts cmd-d and cmd-shift-d divide an existing session vertically or horizontally, respectively. You can navigate among split panes with cmd-opt-arrow or cmd-[ and cmd-].

How do I open iTerm2 settings?

Select Session > Edit Session to modify properties of the current session. The preference window will open, and at the bottom of the General tab is a field where you can set a hotkey that opens iTerm2 to reveal that session.

How do I exit iTerm?

Session -> Edit session, Session tab, ensure 'Automatically close a session when it ends' is checked; and then, General tab, ensure Default profile is selected (or whichever profile you're wanting to set), and click 'Click to Set'. Almost correct: in session tab: "After a session ends:" close.


2 Answers

I'm on Sierra using iTerm 3.1 and I have the option under window to put the screen where the cursor is (bottom right drop down options). I'm using it with a hotkey.

iTerm preferences

like image 185
Grant Avatar answered Sep 23 '22 00:09

Grant


The answer by Grant works. The only thing you need to do is to install the beta version since there was a bug in the stable version.

This bug was fixed in 3.1.beta.1 https://iterm2.com/downloads.html enter image description here

Here's the link to the latest beta version https://iterm2.com/downloads/beta/iTerm2-3_1_beta_4.zip

like image 21
Harry Avatar answered Sep 25 '22 00:09

Harry