Questions tagged [iterm2]

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

859 questions
14
votes
2 answers

Iterm2 path color setting

I used to be a ubuntu user but switched to Mac recently. I really want to configure the colorscheme of iterm2 to look act like ubuntu default terminal as much as possible. The biggest problem is I can't configure the color of the current path. in…
Bobby
  • 1,511
  • 1
  • 15
  • 24
13
votes
3 answers

When I switch desktops in macOS with multiple displays, why is focus switching to another unexpected application (iTerm2 or VSCode in my case)?

I have a MacBook Pro running Catalina with an additional display. I typically have my development-related apps on one display (iTerm2, VSCode, etc.) and everything else on the other display (Chrome, Slack, etc.) Sometimes (not all the time), when I…
sunw
  • 535
  • 5
  • 29
13
votes
1 answer

Change terminal in visual studio code by iTerm2 with Powerlevel10k

I'm trying to change my VScode terminal. I have followed this tutorial. My iTerm terminal has been changed perfectly : I tried to edit my settings.json files in VScode like this : { "terminal.external.osxExec": "iTerm.app", …
Jonor
  • 1,102
  • 2
  • 15
  • 31
13
votes
2 answers

ZSH keeps breaking with `zsh: fork failed:`

In the past few weeks (possibly since I upgraded to Sierra) I keep getting this weird issue in iTerm2 using ZSH. Basically, at intermittent points during my regular workflow, commands will stop working properly with the error: _run-with-bundler:5:…
bodacious
  • 6,608
  • 9
  • 45
  • 74
13
votes
1 answer

iTerm2 trigger case insensitive

Recently I discovered iTerm2's wonderful feature: triggers. Now I want iTerm to highlight some pieces of text, for exampeo error, fatal, etc. I want those triggers to be case-insensitive, but I'm having a hard time setting up these triggers.…
Rogier Lommers
  • 2,263
  • 3
  • 24
  • 38
13
votes
3 answers

iTerm2 v3 conversion of tabs to spaces on paste

When pasting text containing tabs into a terminal window, iTerm2 (version 3) asked if I wanted to change the tabs into spaces. I agreed and set that as the default. Now, I need iTerm2 to stop converting the tabs into spaces. How do I do this? I've…
Rob Philipp
  • 241
  • 3
  • 7
13
votes
2 answers

How to mouse-wheel scroll downwards with tmux

I've got tmux to scroll up, with the mouse wheel, using mouse-mode on in tmux.conf (here's my entire conf). But I've always had a problem scrolling back down again. Once the cursor hits the bottom of the screen, it immediately scrolls back to the…
mahemoff
  • 44,526
  • 36
  • 160
  • 222
12
votes
3 answers

In iterm how do I show the start time of a command

I would like to see when I typed a certain command. How do I display this in my terminal prompt?
rose specs
  • 905
  • 8
  • 18
12
votes
2 answers

iTerm2: Export session to text/pdf file

I just recently switched from the default terminal where I was able to export a session to a document file, and I can't find the same option on iTerm2. An alternative that I have tried based on my searches on the internet: 1) Turned on automatic…
MitterHai
  • 129
  • 2
  • 10
12
votes
3 answers

Duplicated characters and non-updating input using tmux in zsh

First off: I'm using tmux 2.5 installed via homebrew on OS X 10.12, in iTerm 2 (though the problem appears in Terminal.app as well). My tmux.conf is on Github, along with my zshrc. The problem: Seemingly out of nowhere, I started seeing an issue…
taylor
  • 1,568
  • 1
  • 10
  • 11
12
votes
2 answers

Find out corresponding escape sequence for a given key combo

In Emacs, I want to bind a particular key combination to a command. However, because I am using Emacs in terminal mode within iTerm2 on OS X, I need to translate the key combo to character escape sequence and register that sequence with iTerm2 so…
MLister
  • 10,022
  • 18
  • 64
  • 92
12
votes
3 answers

Delete (forward) character iTerm2 OSX

I am using iTerm2 on OSX, and I am using an external keyboard with a Del (not to be confused with Backspace). The Del key works fine in OSX but in Terminal and iTerm, it inserts "~" instead of deleting forwards one character. This is easily fixable…
luxon
  • 417
  • 5
  • 14
12
votes
2 answers

Use iTerm2 as X11 terminal (for fonts, themes, etc)?

I have to use Quartz X11 window when I want to plot data that is on a remote server (using NX). I'd like to use my iTerm terminal as the interface to this, as it is nicely customized with fonts, themes, etc - instead of the bare xterm window. How do…
Andrew
  • 6,295
  • 11
  • 56
  • 95
12
votes
1 answer

Tab completion freezes for Git commands only

I have some strange behavior regarding my setup that I can't seem to narrow down. I am using tab completion in my shell without any issues (my shell is zsh). The issue I'm having is regarding tab completion after issuing a git command. Example 1…
Anthony
  • 15,435
  • 4
  • 39
  • 69
12
votes
3 answers

iTerm 2 not honoring key bindings declared in .tmux.conf

I am using the latest stable version of iTerm2 (2.0) with the latest Homebrew build of tmux (1.9a). Unfortunately, my keybindings as declared in .tmux.conf do not work with the iTerm2/tmux combo in "integrated mode" (i.e. when iTerm2 takes over the…
BorromeanNot
  • 291
  • 3
  • 7