iTerm2 is an open source Terminal replacement for OS X
Questions tagged [iterm2]
360 questions
209
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
- 8,599
- 24
- 58
- 86
150
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,425
- 9
- 30
- 35
148
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
- 17,668
- 42
- 121
- 159
80
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
- 997
- 1
- 8
- 11
76
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,758
- 8
- 27
- 39
60
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.
Javid Jamae
- 728
- 1
- 5
- 13
60
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?
Panagiotis Panagi
- 727
- 2
- 7
- 9
56
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
- 663
- 1
- 5
- 6
56
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,468
- 3
- 18
- 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…
J0hnG4lt
- 1,591
- 1
- 11
- 16
50
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
Mark Stewart
- 768
- 1
- 6
- 11
44
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,251
- 4
- 23
- 29
43
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
- 533
- 1
- 4
- 7
41
votes
3 answers
Mac OS X: Command-Tab doesn't switch back to fullscreen app
Using the Spaces style fullscreen mode in OS X, I can easily Command-Tab out of a fullscreen app, but trying to Command-Tab back in doesn't take me back to that space, only switches the Menu Bar to the application.
Currently the easiest way to get…
mrmagooey
- 511
- 1
- 4
- 6
40
votes
6 answers
“^[[O” and “^[[I” appearing on iTerm2 when focus lost
I’m using iTerm2 2.1.1 on Yosemite. No tmux.
When iTerm loses focus (when switched to another application by Cmd-Tab or clicking another window), a ^[[I and ^[[O seems to be sent to the terminal. This causes a ^[[I^[[O to appear, or more…
osyoyu
- 509
- 4
- 3