Questions tagged [iterm]

iTerm is an enhanced terminal emulator for OS X and macOS

iTerm2 is a replacement for Terminal and the successor to iTerm. It works on Macs with OS 10.5 (Leopard) or newer. Its focus is on performance, internationalization, and supporting innovative features that make your life better.

332 questions
3
votes
1 answer

OSX script to open a new iTerm window and run a command based on a variable

I am trying to use the iTerm example shown here in answer to another query. Basically I have a list of about 20 text files representing reports from different servers. I want to read each file name in the directory they live in and from that build a…
user3169632
  • 43
  • 1
  • 4
3
votes
1 answer

How/where are RGB values mapped to xterm color codes? Can they be overridden?

I'm trying to understand exactly how colors are processed in my terminal emulator (iTerm2). In iTerm2 I can configure my "base 16" color palette - in iTerm2 this is done using HSL, not 16-bit RGB values. The colors defined this way are native - they…
nfarrar
  • 2,291
  • 4
  • 25
  • 33
3
votes
0 answers

How to preserve buffer and window location (without manual save) between iTerm sessions?

How does one set iTerm to keep the buffer history (like Terminal.app's behavior) on OS X between quitting the app? Also, it seems to reset Window Arrangement between sessions without manually saving it. Can I set this so that it remembers these…
GDP2
  • 1,948
  • 2
  • 22
  • 38
3
votes
1 answer

zsh with iterm 2 does not recognize my alias

When I add an alias to ~/.zshrc such as alias dir='cd ~/Desktop/somedir' and do source ~/.zshrc, it says "command not recognized 'cd " when trying to use the alias in iterm 2. However if I create the alias inside of iTerm 2 and not the ~/.zshrc…
besh
  • 35
  • 1
  • 5
2
votes
1 answer

color issue with VIM and iTerm2

I have a color issue on iTerm 2 (both stable and beta release) using VIM (last version). This is a screenshot on iTerm 2 using vim-css-color plugin : And the same on the Terminal.app : As you can see, iTerm renders quite strange colors (and not…
Cornelius
  • 378
  • 1
  • 2
  • 12
2
votes
3 answers

How does this script for naming iTerm tabs work?

I'm trying to name my iTerm tabs and found this link. Here is the pertinent part of the guy's post: I wrote a simple script, which I call “nametab”, which allows you to name the tab you are in from the command line. You just type something like: $…
Deonomo
  • 1,583
  • 3
  • 16
  • 25
2
votes
3 answers

Change vim background and colorscheme based on iTerm profile

I have two iTerm profiles setup, a dark one to use the Pastel theme and a light one to use solarized light theme. Is there any way to have Vim change the background and colorscheme options based on what profile iTerm is currently using?
Brandon
  • 1,997
  • 3
  • 24
  • 33
2
votes
2 answers

How to disable history popup in iTerm2?

I am using iTerm 2 for Mac How can I disable this "history pop up window"?
Jan
  • 12,992
  • 9
  • 53
  • 89
2
votes
2 answers

How to open iTerm from the terminal in Visual Studio Code?

I tried the command iterm . but it says zsh: command not found: iterm. How can I create a shortcut for iterm so I can open it from other terminal tools? Pretty much I want open -a iTerm . to be shortern to iterm . but I don't want to use the alias…
Aero Wang
  • 8,382
  • 14
  • 63
  • 99
2
votes
1 answer

iTerm now showing cursor when pressing Shift + arrow key

As you can see in this picture, iTerm is adding a kind of overlay cursor (plus this paper icon) above the terminal windows when I press Shift + any arrow key. It seems to be a text selection tool or something similar. Since I have mapped Shift +…
Philipp L.
  • 35
  • 5
2
votes
2 answers

Arrow keys in insert mode in vim

When I'm in insert mode in vim and I use the arrow keys, it sends what seems like a letter and a carriage return. For example, pressing ↑ it sends: A It looks like A\n but I'm not sure exactly what characters/codes it's sending. Why does this…
David542
  • 104,438
  • 178
  • 489
  • 842
2
votes
0 answers

How To Occasionally Pin The Hotkey Window To A Specific Desktop

I am running iTerm2 build 3.3.6. I usually just bring up the Hotkey window with a keystroke, but occasionally I want to keep it open on a specific OSX desktop and only that desktop. That way I can hop to another desktop to look at reference material…
THX1137
  • 903
  • 6
  • 15
2
votes
1 answer

How do you run a command in iTerm when it launches?

I'm working on configuring the iTerm terminal emulator for the Mac to do what I want. Apparently everything is done through what they call "bookmarks." OK, fine. I'm trying to create a bookmark that will open a tab, cd to a certain Rails project,…
Ethan
  • 57,819
  • 63
  • 187
  • 237
2
votes
1 answer

Shrink/filter view to only include matched lines

Using iterm2, is there a way to search for matching lines, and only include those lines in the output? Right now if I do CTRL+f - it will highlight matching text in yellow, but I am looking to filter out all lines that don't have matching text, is…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
2
votes
2 answers

Adding Git branch to Command Prompt

When looking for an alternative for the cool feature in ITerm(mac) which shows the branch we are on: I found out that: If you are on Windows, you probably aren't reading this because Windows provides this behavior by default. I had no idea that…
Sandra K
  • 1,209
  • 1
  • 10
  • 21