Questions tagged [iterm2]

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

859 questions
568
votes
14 answers

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

I can see that Ctrl+left/right jumps to the beginning/end of line. How to change this to Cmd+left/right arrow?
chris
  • 7,222
  • 5
  • 31
  • 37
458
votes
3 answers

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 the output continues further up beyond the top of…
Mohamed El Mahallawy
  • 13,024
  • 13
  • 52
  • 84
444
votes
9 answers

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 when I use the scroll wheel on the mouse in…
Gambo
  • 4,790
  • 2
  • 14
  • 14
362
votes
8 answers

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.googlecode.iterm2.plist but it keeps giving me this…
Alex Cory
  • 10,635
  • 10
  • 52
  • 62
179
votes
7 answers

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 somewhere in iTerm to turn on notifications or is…
truth1ness
  • 4,831
  • 5
  • 21
  • 19
155
votes
4 answers

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
  • 14,591
  • 19
  • 61
  • 94
142
votes
12 answers

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, press Command + C, go to the terminal, and then…
user7055375
135
votes
8 answers

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 (^[1K) based on what I read in Wikipedia. It just…
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
112
votes
4 answers

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 from Mac Terminal, and it easily lets you choose…
greduan
  • 4,770
  • 6
  • 45
  • 73
99
votes
1 answer

Bash keyboard shortcuts in iTerm like Alt+d and Alt+f

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 to delete a word. I can't imagine this isn't…
rewolf
  • 5,561
  • 4
  • 40
  • 51
93
votes
8 answers

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
  • 2,522
  • 3
  • 22
  • 26
92
votes
2 answers

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
  • 8,185
  • 8
  • 32
  • 49
80
votes
2 answers

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
  • 1,868
  • 3
  • 17
  • 23
79
votes
3 answers

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 activate/focus the next tab to the right or the left,…
dcmbrown
  • 1,049
  • 9
  • 15
79
votes
3 answers

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
  • 3,097
  • 12
  • 43
  • 54
1
2 3
57 58