Questions tagged [iterm2]

iTerm2 is an open source Terminal replacement for OS X

365 questions
220
votes
17 answers

With Bash + iTerm2, how to name tabs?

In iTerm2 (Build 1.0.0.20120203), I typically open several tabs, each of which has split panes , and is about one particular theme of work, for example revision control, coding, managing files, mysql terminal work. I typically need to switch…
qazwsx
  • 9,311
188
votes
5 answers

Where is the .zshrc file on Mac?

I’m using iTerm and wanted to customize the look of my terminal window using Oh My ZSH!. And according to the documentation I need to change the ~/.zshrc file and add a ZSH_THEME value: Once you find a theme that you want to use, you will need to…
Leon Gaban
  • 2,855
172
votes
8 answers

How can I get control+left arrow to go back one word in iTerm2?

I was reading up in the Linux manual and I noticed that it said I could use control+left and control+right to move forward and back words in the terminal while editing. "Pressing Ctrl plus the Left or Right arrow key moves backward or forward a…
cwd
  • 18,788
  • 43
  • 123
  • 162
87
votes
4 answers

iTerm2 (version 3): Individual history per tab?

I’m using iTerm2 (version 3) and like it. But something that it has been doing for a while that's really annoying is that the command history is shared between tabs. E.g., in your first tab, run command foo and command bar, then go to your second…
Alan H.
  • 2,938
86
votes
9 answers

Setting iTerm2 as the default terminal (OSX Lion)

I would like to set iTerm2 instead of terminal.app as my default terminal. Go2Shell for example let you open a terminal to the current directory in Finder. I want to ba able to use iterm2 instad of terminal.app. I didn't find any answer on the…
politicus
  • 1,077
  • 1
  • 9
  • 12
65
votes
8 answers

Color scheme not applied in iTerm2

I haven't been able to apply any color scheme to iTerm2. It looks like that the Basic Colors are applied, but the ANSI Colors are not (as shown in Preferences>Profiles>Colors). Using Mac OSX 10.7.2. Any help?
62
votes
2 answers

Disable Cmd+Enter on iTerm 2

I'm using iTerm 2 on Mac, and whenever I press Command + Return the thing goes full screen. My big fat fingers can't help it, so I really need to turn it off. Any suggestions? Thanks in advance
62
votes
5 answers

How can I partially clear my terminal scrollback?

I want to partially clear my terminal scrollback history, but only from where I have selected with my mouse in the scrollback and up. Is this possible? I'm on a Mac, and I use iTerm2 and Terminal.
60
votes
4 answers

Increase/Decrease Font Size in iTerm2

Issue: I use laptop on the go, and connect to external monitor when in the office. Given that the external monitor is very large, I need to increase fonts in the existing iTerm2 window (usually one) and all tabs. Workaround: I scale the fonts up…
van
  • 703
60
votes
5 answers

Pasting 'required text' into terminal emulator results in '^[[200~required text~'

I have noticed that when pasting into a terminal emulator, both on macOS (using Terminal.app or iTerm2.app) or in Linux (using urxvt) sometimes I get extra characters. The characters are always the same - before the pasted text I get ^[[200~ (with…
lx07
  • 3,266
57
votes
8 answers

Is there a keyboard shortcut to alternate between color schemes in iTerm2

I am using the Solarized color scheme in iTerm2 and it comes with two themes: one with a light background for daytime hours and one with a dark background for nighttime hours. I am currently switching between them by going to the iTerm2 preferences,…
Richard Jones
  • 5,928
  • 3
  • 20
  • 14
52
votes
4 answers

How do I get the numpad to work in vim using iterm2 on osx with term=xterm?

My numpad works in iterm2 (bash), but it inserts characters instead of numbers in insert mode for vim. How can I get vim to recognise the correct escape codes. I have tried editing the escape codes as suggested here without any…
Max Cameron
  • 1,601
49
votes
1 answer

How to disable selection highlighting on iTerm2?

Every time I click something on the terminal, it highlights that line or block or whatever. How do I disable this? If you look at the screenshot below, I clicked on the bottom part of the terminal and it "highlights" that entire portion. Edit Turns…
Sean
  • 625
46
votes
2 answers

iTerm command click to open with Atom

I am trying to figure out how to change iTerm function when CMD+Clicking on a file in an iTerm window to have it open in my default editor, Atom. Currently, the CMD+click function in iTerm opens files in Sublime. I have the function CMD+Click set…
rylectro
  • 563
45
votes
6 answers

iTerm 2 window resizing

My iTerm 2 window is up against the menubar at the top of the screen. When I resize the window vertically from the top to the bottom, a small gap is always left. It never resizes down fully to the bottom. I think this is because it is only resizing…
jordelver
  • 2,361
1
2 3
24 25