Skip to main content

Questions tagged [iterm2]

`iterm2` is a GPL terminal emulator available on macOS.

Filter by
Sorted by
Tagged with
584 votes
14 answers
213k views

How to set keyboard shortcuts to jump to beginning/end of line? [closed]

I can see that Ctrl+left/right jumps to the beginning/end of line. How to change this to Cmd+left/right arrow?
chris's user avatar
  • 7,413
488 votes
4 answers
193k views

How can I scroll up more (increase the scroll buffer) in iTerm2?

How can I scroll up more on iterm2 to get full output? At times, for example if I am doing unit tests, the errors are so large than I need to keep scrolling up to which I cannot scroll up anymore but ...
Mohamed El Mahallawy's user avatar
475 votes
10 answers
134k views

How can I turn off "scrolling the history" in iTerm2

I have installed the new iTerm 2. It asked me in a yellow bar at the top if I'd like to enable a mouse feature. Unfortunately, I don't remember the exact sentence anymore. By accident I approved. Now ...
Gambo's user avatar
  • 5,100
379 votes
8 answers
237k views

How to export iTerm2 Profiles

I needed to reformat my computer and now I'm having trouble copying the settings/profiles over. I copied the files in ~/Library/Application\ Support/iTerm/ I also copied ~/Library/Preferences/com....
Alex Cory's user avatar
  • 11.5k
188 votes
8 answers
54k views

How do I make iTerm terminal notify me when a job/process is complete?

A notification center notification would be ideal but growl, bounce dock, sound, etc would be fine, too (or if this can only be done in Terminal.app I'd be willing to switch back). Is there an option ...
truth1ness's user avatar
  • 4,981
164 votes
11 answers
70k views

Getting strange characters when pasting into my iterm2 terminal

I'm using iterm2 v 3.0.15 on Mac Sierra. I'm having trouble cutting and pasting from other places (e.g. text on a web page) into my terminal. For instance, I highlight some text from a web page, ...
user avatar
163 votes
5 answers
91k views

ZSH iterm2 increase number of lines history

Not sure if this is zsh, iterm2 or the interaction between them. Trying to change the number of recallable lines in the terminal - not the command history, the output history. In .zshrc I have : ...
xxjjnn's user avatar
  • 15k
144 votes
8 answers
69k views

iTerm2: delete line?

I'm trying to map ⌘+Delete (backspace) to delete to the beginning of the line (like it works in browsers and text editors) in iTerm2 and I'm unable to find a working escape code for it. I tried 1K (^[...
Steven Lu's user avatar
  • 42.6k
113 votes
4 answers
94k views

Make iTerm2 launch with Zsh

I've been digging through iTerm2's settings but I can't seem to find a way to make it launch Zsh instead of Bash, does anybody know the proper way to do this inside iTerm2? I ask this because I come ...
greduan's user avatar
  • 4,888
100 votes
1 answer
31k views

Bash keyboard shortcuts in iTerm like Alt+d and Alt+f [closed]

Everyone at work recommended iTerm2 to me instead of the native Terminal. But iTerm2 doesn't seem to allow me to use bash shortcuts like Alt+B and Alt+F to jump back/forward between tokens, or Alt+D ...
rewolf's user avatar
  • 5,791
98 votes
8 answers
131k views

Change default terminal app in Visual Studio Code on Mac

I want to change the default terminal app used by Visual Studio Code for Mac. I am thinking it is part of preferences or settings json, but unsure.
Joey Schluchter's user avatar
98 votes
2 answers
16k views

iTerm2: Stopping the inactive pane from dimming

I'm using irssi in one pane and nicklist.pl in the other, and whenever I'm in the irssi pane, the nicklist pane is dimmed: How do I stop the inactive pane from dimming?
callumacrae's user avatar
  • 8,393
97 votes
2 answers
19k views

iTerm2: how to remove the right arrow before the cursor line

Please look at the picture, It is a screenshot of iTerm2 Build 3.0.0 the blue arrow at the beginning of the cursor line. How to remove or hide it?
hellojinjie's user avatar
  • 2,078
84 votes
3 answers
36k views

How to turn off word wrap in iTerm2?

How to turn off word wrap in iTerm2? Is there a specific command to do so or in the preferences? I am trying to avoid having the text run down to the next line. I would rather scroll side to side.
Beast_Code's user avatar
  • 3,167
82 votes
3 answers
10k views

iTerm tab switching order

A weird issue that comes up every once in a while when I have a lot of terminal tabs open and am switching between them via the keyboard is that the tabs get out of order. Normally iTerm will ...
dcmbrown's user avatar
  • 1,079
65 votes
8 answers
42k views

is it possibile to open iTerm in current Finder position

Sometimes it could be very useful to open new iTerm window. I've seen this feature in Gnome window manager. It is possible to get same feature on MaxOsX? Is there a software to do that?
sensorario's user avatar
  • 21.2k
64 votes
5 answers
16k views

Can I click on a filename and line number in iterm2 to open that file in Visual Studio Code at the correct line number in OS X

When Iterm2 shows a file name and line number in Mac OS X, can I ⌘-click on the file and have it open in an already open window in Visual Studio Code and position the cursor at the correct line number....
danmux's user avatar
  • 2,864
57 votes
5 answers
53k views

iTerm2 Transparent transparent background for inactive windows

The native MacOS Terminal has an ability to set transparency for both in-active and active panes. iTerm2 has the transparency for active backgrounds, for some reason, I can't find the inactive one or ...
user avatar
57 votes
5 answers
26k views

iTerm2 slide down over full screen app

I always have my IDE (phpStorm) in full screen mode (Yosemite). I want my iTerm2 hotkey to slide my terminal window down over the IDE, so it doesn't open up a new space for the terminal window. As ...
Stanley's user avatar
  • 4,005
57 votes
3 answers
20k views

Create New Tab Sessions with the same working Directory

Often in workflow you are working within a directory and then need to create a second terminal or session to the same directory. TAB 1 #~/home cd really #~/home/really cd long #~/home/really/long cd ...
StanleyZheng's user avatar
  • 4,108
57 votes
5 answers
19k views

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 ...
Houman's user avatar
  • 65.6k
53 votes
5 answers
28k views

iTerm2 hide/show like Guake

I have looked around for a short time trying to see if there is any way that iTerm2 has the options to hide/show like Guake does on Ubuntu? I have fallen in love with this option using Guake and would ...
pertrai1's user avatar
  • 4,268
50 votes
8 answers
107k views

How to enable autocomplete in iTerm2

Let's say I'm in my root directory, and I have a User folder that I can cd into. In my default Mac terminal, I can just type cd U + tab, and it autocompletes to cd Users/. How do I get this to work ...
Farid's user avatar
  • 1,617
49 votes
9 answers
23k views

With iTerm2 on Mac, how to delete forward a word from cursor on command-line?

With iTerm2 1.0.0 on Mac OS X 10.6.8, I'd like to delete from cursor to the next end of word, i.e. deleting one word forward. I tried Alt+d but this types the delta operator symbol ∂ and doesn't ...
qazwsx's user avatar
  • 26.5k
48 votes
2 answers
9k views

How to disable the grey background colour on iterm2 desactived tab split?

In iterm2, by default setting, only the current using tab split will have the normal black background colour, meanwhile all the other tab splits will be covered by a fog-like grey background colour. ...
ZengJuchen's user avatar
  • 4,681
48 votes
4 answers
26k views

How to select text in iterm with Shift+Arrow?

On most mac applications Shift+Arrow selects text but in iterm it just moves the cursor without selecting. How do you get it to select the text? Would also be curious if there's a way to do this in ...
truth1ness's user avatar
  • 4,981
46 votes
1 answer
23k views

Difference between iTerm2, zsh and oh-my-zsh

I have been using the default bash of linux for over 1 year and one of colleague recommended me switch over to using iTerm2 alongwith zsh and oh-my-zsh. He also recommended this post to install and ...
Pawan's user avatar
  • 621
39 votes
7 answers
169k views

Why do you need to source .zshrc for every new shell in iTerm?

I've used Iterm2 with zsh everyday for the past 3 years, but I got a new computer and had to set it up again. The problem is that when I run ~/.zshrc it works fine, but I have to do it on every new ...
Trevor's user avatar
  • 1,364
37 votes
3 answers
12k views

When I open the terminal shows "The specified command("completion") is invalid. For a list of available options, run "ng help"

When I open the terminal did't do anything. It will shows errors as below.
Eve-Sama's user avatar
  • 2,580
35 votes
1 answer
13k views

how to use the trackpad to scroll in nano using iterm2, the way it works in terminal.app?

I am used to editing in nano, and with terminal.app it's easy to quickly move up and down the file using the scroll gesture. I am trying out iTerm2, but now the scroll gesture just makes iTerm scroll ...
libbynotzoey's user avatar
35 votes
8 answers
12k views

Open file on IntelliJ from iTerm 2

I have output in my iTerm that is like: File project/path/path/file.py:56:54 extra text information How can I open this file in IntelliJ with a single click?
Raúl Martín's user avatar
34 votes
5 answers
10k views

How do I stop iTerm2 from running xcodebuild and hanging when I open a window?

Since this morning, on my iMac (macOS High Sierra Version 10.13.6) any time I open an iTerm2 window (with Oh My Zsh installed), I see this: It seems that it's trying to run xcodebuild and it's stuck. ...
Paul Shryock's user avatar
  • 1,389
34 votes
7 answers
75k views

How can I use iterm as default terminal on macOS?

I want to make iTerm2 as my default terminal on macOS, I open iTerm2 and hit to make iTerm default Term But it's not working! And I go to default terminal preferences But after open it I see ...
Oliver D's user avatar
  • 2,809
32 votes
6 answers
68k views

How to uninstall iTerm2

After searching for about an hour and only getting install options, I have to ask: How to uninstall iTerm2? So, somehow, I passed a big load of JSON into it (don't ask) and now it has lost the plot ...
MrPickles's user avatar
  • 860
31 votes
1 answer
8k views

How to launch fullscreen when opening iTerm2?

Is there an option to start iTerm in fullscreen mode? I do not see such option in Preferences. I always want that in fullscreen. How can I configure iTerm2 to open as full screen when launching it.
Abd Ur Rehman's user avatar
31 votes
5 answers
46k views

How do I import an iTerm2 profile?

This question helped me with how to export a profile configuration file, but how do I import that file into iterm2 on my new machine? (the file I exported was called com.googlecode.iterm2.plist, for ...
Stew's user avatar
  • 4,455
28 votes
6 answers
8k views

vim - dim inactive split panes

If you're familiar with the iTerm2 application, you'll know that you can split views similar to vim, and the inactive views are "dimmed." I usually work in vim with three vertical split views and it ...
user avatar
28 votes
2 answers
17k views

Close a split screen/window in iterm

Does anyone know what the shortcut (if it exists) to close an active pane in iterm. I am using the beta version 2.9 and have tried configuring it in preferences to no avail. This is what I have so ...
Wings's user avatar
  • 1,006
28 votes
1 answer
8k views

Keyboard shortcut to jump to previous command in iTerm2?

In Terminal, I can simply to cmd+up arrow. How can I do this in iTerm2? I've tried the cmd+shift+up arrow option, but it doesn't work reliably, especially when there is a currently running process.
Logan's user avatar
  • 1,684
28 votes
7 answers
10k views

Arrow keys no longer work in Python shell after upgrading Mac OS to Sierra

I'm using zsh, iTerm2 (3.0.9), and pyenv (1.0.2) with pyenv global set to 3.5.2. In the Python shell, the up and down arrow keys used to work, to access the previous commands in the history. But now ...
danib's user avatar
  • 441
28 votes
1 answer
14k views

Can Terminal.app be made to respect ANSI escape codes?

I notice that with the TERM environment variable set to either xterm or xterm-256color that Mac OS X’s Terminal.app utility respects most ANSI escape codes, as least when those escape codes pertain to ...
Mark G.'s user avatar
  • 2,968
26 votes
2 answers
10k views

iTerm2 swap panes keyboard shortcut

The option for swapping between panes is only available through the menu button but I can't see any action to bind to this action. Is there and in built command that allows to swap panes?
tushar's user avatar
  • 791
26 votes
2 answers
5k views

Can't see what I'm typing in iterm2

Periodically, I'll run rspec (though I don't know if its specific to that) and suddenly, I can't see what i'm typing. I have to close that iterm2 window out and open a new one. Then that will work ...
fregas's user avatar
  • 3,252
23 votes
1 answer
43k views

Is it possible to see a log or history of previous iTerm2 sessions?

Is there a log of recent terminal sessions at all? Or anyway I can see what was written to console before I last quit?
Mascros's user avatar
  • 351
22 votes
3 answers
13k views

iTerm2 Shell Integration and Oh My Zsh Conflicts

I've recently re-installed iTerm2 and am now running into an interesting problem after setting up iTerm's Shell Integration. Upon open a new terminal window, everything seems to look correct, showing ...
Will's user avatar
  • 914
21 votes
5 answers
10k views

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 ...
oarfish's user avatar
  • 4,396
20 votes
2 answers
11k views

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's user avatar
  • 3,324
20 votes
3 answers
14k views

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....
Sam Selikoff's user avatar
  • 12.6k
19 votes
1 answer
1k views

Turn off command highlighting in May 20 2024 iTerm2 Release

This highlighting feature is driving me crazy. How do I turn it off?
willwrighteng's user avatar
19 votes
3 answers
10k views

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 ...
orkenstein's user avatar
  • 2,828

1
2 3 4 5
18