`iterm2` is a GPL terminal emulator available on macOS.
Questions tagged [iterm2]
859 questions
9
votes
3 answers
iTerm2 and tmux: open new tab in working directory of current tab
When I open a new tab (via ⌘T) on a remote shell using iTerm2 and tmux, I almost always want the new tab to have the same working directory as the current tab. The best I can do is make iTerm2 open up the new tab in the same directory in which I ran…

void-pointer
- 14,247
- 11
- 43
- 61
9
votes
2 answers
Change oh-my-zsh theme when ssh is run
I have Oh-my-zsh installed on iterm2. How can I make my terminal change theme whenever ssh is run? It would be nice if the script also changes the background to one of the presets imported.
I am a complete bash noob. Please explain in newbie…

user3534472
- 341
- 3
- 6
- 11
9
votes
1 answer
Display all unicode characters in Emacs under OS X
First of all, please look at this screenshot
I have GUI Emacs installed via Homebrew on the left and another one running inside iTerm2 with -nw option on the right. Both of them are using Droid Sans Mono font.
But, as you can see, the right one can…

Max Prokopiev
- 273
- 3
- 10
9
votes
4 answers
RVM and Gemfile - not always loading correct ruby, only when 'cd .. & cd myproject'
TL;DR: Every time I open a new iterm2 tab, rvm goes back to default version, it doesn't use the Gemfile ruby version
My Gemfile has
source 'https://rubygems.org'
ruby '2.0.0'
and I use rvm 1.25.14.
RVM is smart and reads the ruby version in…

oma
- 38,642
- 11
- 71
- 99
9
votes
3 answers
iTerm2 Get Current Session Profile?
So I know there is a way to set the session profile via echo -e "\033]50;SetProfile=Foo\a" but is there a way to get the current session's profile?

gdoubleod
- 1,268
- 3
- 19
- 33
8
votes
2 answers
iTerm2 - Cannot display unicode characters
Obviously that was an issue with version 3.0.14. Updated to 3.0.15 and the problem is solved.
In OS X El Capitan I cannot display unicode characters in iTerm2 (Build 3.0.14).
I have set terminal emulation's character encoding to Unicode (UTF-8) in…

Ugur
- 1,914
- 2
- 25
- 46
8
votes
2 answers
Conda environment name shows entire directory in prompt
When I run:
source activate /anaconda2/envs/myEnv
it shows the entire directory of this conda environment in my prompt (on iterm2) as so:
(/Users/billy/anaconda2/envs/myEnv)billy@mbp:~/projects
Is this a way to shorten this, so that it just shows…

Spacey
- 2,941
- 10
- 47
- 63
8
votes
2 answers
Solution for using iTerm2 'shell integration' and screen (over ssh)
So when i ssh into a remote server i use 'screen -R myscreen' to prevent any running scripts/processes from being interrupted when the ssh connection disconnects, for whatever reason (bad wifi, etc).
However, when starting screen, iTerm2's shell…

Motsel
- 518
- 1
- 4
- 11
8
votes
2 answers
Iterm2 case insensitive autocomplete
How can I add case insensitive autocomplete to Iterm2 terminal? I have tried:
set completion-ignore-case on
But this does not seem to be the solution.

rebbailey
- 714
- 1
- 7
- 16
8
votes
3 answers
How to open the iTerm in the sublime text 3?
I installed the Terminal package in the sublime3, setting in the package:
{
"terminal": "iTerm.sh",
"parameters": []
}
But when I press the command + shift + T buttons together,there is no response,Why?

ycjcl868
- 432
- 3
- 7
- 18
8
votes
2 answers
Split pane to cwd
I often want to start a persistent process from a particular directory and be able to monitor it, while still keeping a command line in that directory for other commands. My current workflow is to cmd + shift + d to split panes, but the cwd of the…

IanVS
- 3,497
- 1
- 20
- 23
8
votes
1 answer
How to undo split panels in iTerm2?
I've started using iTerm2. I like the functionality of splitting panels using
Cmd + d
and
Cmd + Shift + d
But how can I undo this splitting?
In the standard terminal Cmd + d can be undone using Cmd + Shift + d, but in iTerm it's used for…

igx
- 4,101
- 11
- 43
- 88
8
votes
1 answer
Have different zsh themes for terminal and iTerm
Here is the problem. I am currently using agnoster theme in zsh. It looks great in iTerm but looks like this in terminal.
In other words it looks really ugly. So I am interested in two kinds of solutions:
Have different zsh themes for terminal and…

Ankit Sultana
- 417
- 4
- 14
8
votes
5 answers
Trouble Getting Colorschemes in Vim with Iterm2
I can't get the vimbrant colorscheme (or any) to work in Vim with Iterm2. This is my .vimrc file:
syntax on
syntax enable
colorscheme vimbrant
set background=dark
I have Iterm set up to use xterm-256 like it says in the FAQ as well. Whenever I echo…

clee101
- 131
- 1
- 1
- 6
8
votes
1 answer
'xterm-new': unknown terminal type
Replicating the error:
I am using iTerm2 on Macbook (OS X Yosemite)
I ssh into a remote instance and tried to run the clear command and this error is shown:
'xterm-new': unknown terminal type.
Not only for the clear command but the same error is…

Pranjal Mittal
- 10,772
- 18
- 74
- 99