Questions tagged [iterm]

iTerm is a third party replacement for the built-in Terminal application.

Filter by
Sorted by
Tagged with
175 votes
6 answers
141k views

iTerm as a slide-out terminal from the top of the screen

I have installed iTerm2 and was hoping I'd have something like guake (Yes I just switched from Ubuntu). I mapped the hotkey to a button of my choice and it works fine, but I miss the slide-down-from-...
user avatar
  • 1,984
16 votes
6 answers
7k views

Option + click in iTerm

In Terminal, Option + click allows me to place my cursor at any point on the current line-- great for editing really long commands. How can I do this in iTerm2? Update: According to this page, the ...
user avatar
  • 273
9 votes
2 answers
11k views

Terminal not displaying colors for directory listings

I don't know why my bash session doesn't show colors. I have tried Terminal as well as iTerm. I have tried: ls -G Setting export CLICOLOR=1 and export LSCOLORS=GxFxCxDxBxegedabagaced Using different ...
user avatar
  • 211
18 votes
6 answers
4k views

How to find all the available tools in mac terminal?

I am trying to setup a bunch of development projects in my Mac. I have to run various tools like python, ruby, scala, groovy etc. To see if a tool is available I use options like ruby --version. ...
user avatar
  • 290
380 votes
9 answers
113k views

Using Alt/Cmd + Right/Left Arrow in iTerm

Is it possible to move between words in iTerm using Alt + Right/Left Arrows ? Now if I press Alt+Left I will get '[D' and '[C' if I press Alt+Right.
user avatar
  • 4,767
187 votes
10 answers
202k views

What is the difference between iTerm2 and Terminal?

I keep hearing that iTerm2 is much better than Terminal. However, when I downloaded iTerm2, I didn't see what made it preferable over Terminal. What are the differences between these two apps?
user avatar
  • 36.1k
37 votes
4 answers
71k views

How do I get different colors for directories, etc. in iTerm2?

I have a new MacBookPro, and I installed the latest release of iTerm2. Even after I imported various color schemes, I notice that they just change the color of the text and background only. What I ...
user avatar
  • 473
26 votes
2 answers
26k views

iTerm2 doesn't read com.googlecode.iterm2.plist

I am iTerm2 (1.0.0) user. I know how to create profiles, by using iTerm settings or modifying com.googlecode.iterm2.plist file. For convenience, I will use .plist to indicate com.googlecode.iterm2....
user avatar
39 votes
3 answers
11k views

How do I do Home and End in iterm2?

Home and End do nothing in iTerm2, nor do ⌘← and ⌘→. However, Ctrl-A and Ctrl-E do work. Can Home and End do this? Preferences->Keys_Key Bindings in iTerm2 do not offer a "Start of Line" or "End ...
user avatar
46 votes
2 answers
23k views

Set iTerm2 as the ssh:// URL handler

Currently, Terminal is set to handle SSH urls. For example, if I do: $ open ssh://machine.example.com Then it will spawn a new SSH session in terminal. I'd like these to be opened in iTerm2 instead. ...
user avatar
52 votes
6 answers
30k views

How to jump to a location using mouse on iTerm/terminal?

I work on a terminal most of the time. Is there an application / plugin over iTerm or any other terminal like application using which I can control the cursor location of my terminal using a mouse ?
user avatar
  • 5,318
35 votes
1 answer
12k views

The history is shared between my iTerm2 terminal tabs: how can I switch that off?

I am using iTerm2 (with zsh), and for some reason the history is shared between the different tabs and windows that are open. In most of the cases for me, this is annoying, since I have tabs per ...
user avatar
  • 453
11 votes
3 answers
6k views

How to prevent iTerm2 from creating overlaps and broken lines after pasting multiline chunks of text?

If I paste multiline chunks of text into iTerm2, I always a get mess of output. It seems limited to only some programs running interactively (such as Bash, IRB - Python / VIM work flawlessly). Using ...
user avatar
  • 181
13 votes
2 answers
2k views

Is anyone else having problems with using htop on High Sierra?

Since the upgrade to High Sierra my MacBook is crashing regularly in a catastrophic way that forces me to trigger a hard reset every time. I suspect htop being the culprit, but I can't tell for sure. ...
user avatar
4 votes
3 answers
7k views

Generic exit function for iTerm2

I've recently begun to use iTerm2 instead of the macOS Terminal application and I'm really happy with it. I'm very used to use to exit command to close the instance that currently has focus. With ...
user avatar
  • 183
1 vote
3 answers
885 views

Why does Terminal ignore capital "B"?

this happens to me from time to time: when I am using the Terminal, suddenly the terminal starting to ignore the capital 'B', regular 'b' works fine, other capital letter work fine. other applications ...
user avatar
  • 141
3 votes
2 answers
13k views

How to make Powerline fonts work with iTerm2

I have a problem with using Powerline fonts in the iTerm2. I followed the tutorial for installation and I have chosen Hack font in the profile settings (Non-ASCII is set just to make sure). My .zshrc ...
user avatar
5 votes
2 answers
11k views

iTerm2 terminals close immediately with "argpath=login error=No such file or directory"

Whenever I try to open a new terminal window in iTerm, it closes right away after displaying this: ## exec failed ## argpath=login error=No such file or directory Does anyone know what is causing ...
user avatar
  • 101
1 vote
1 answer
353 views

How to make path prompt easier to read by color-coding each `/` (forward slash)?

I would like to get another configuration for the path, more a detail than a real request: Below an example of zsh PROMPT : In order to make reading the path easier, I would like to change ...
user avatar
0 votes
2 answers
2k views

How to change the color and format of the static host/path/user string in the Terminal or iTerm?

Example: cookie:~ j$ date Sun Aug 5 02:14:29 CEST 2012 cookie:~ j$ Just as it's pasted here, all three lines are of the same color. I would like to have "cookie:~ j$" or at least part of the string ...
user avatar
  • 113
398 votes
11 answers
179k views

iTerm - going one word backwards and forwards

Would it be possible to configure iTerm 2 to go backwards and forwards one word through the curent text in the command line using a keyboard shortcut?
user avatar
  • 9,088
42 votes
2 answers
44k views

iterm - what's the key-combo to switch panes?

I've learned how to split my terminal windows with apple-d and apple-shift-d. Its very useful. How do I then switch between the two panes (see below) using the keyboard? I know I can use the mouse ...
user avatar
27 votes
4 answers
54k views

iTerm colors for Prompt, Command, and Output

Right now my iTerm2 looks like this... Everything is the same color and is hard to read. Can I make any of the Prompt, Command, and Output different colors like this?
user avatar
25 votes
4 answers
13k views

Iterm2 disable Command shortcuts

I use Iterm2 on the Mac. Many times, I accidentally press Command+some key, so I'm wondering, is it possible to disable the Command shortcuts? Like Command+D for example, as I use tmux for split panes....
user avatar
  • 350
39 votes
1 answer
33k views

Where does iTerm store user preferences?

Where exactly is iTerm's user preferences file located? What I want is to sync this file over Github between several machines.
user avatar
  • 9,088
12 votes
2 answers
6k views

How to show italic in vim in iTerm2

The beloved Solarized colour scheme seems to apply an italic face for comments, but when I am using it in vim in iTerm2, it does not. So, everything including comments are displayed in Roman (normal) ...
user avatar
31 votes
2 answers
20k views

unknown option: mode-mouse with iterm, tmux

I've reset my computer and now tmux is complaining about my .tmux.conf having these directives: setw -g mode-mouse on set -g mouse-select-pane on set -g mouse-resize-pane on set -g mouse-select-...
user avatar
15 votes
5 answers
13k views

Why don't my arrow keys work in vim under iTerm?

They work just fine if I use Terminal and start a vim session, but under iTerm I have to resort to using H-J-K-L to do left-up-down-right movement. In both Terminal and iTerm TERM=xterm-color. My ....
user avatar
  • 44.4k
11 votes
4 answers
8k views

How can I move through words when typing a command in iTerm2?

I'm in Lion with iTerm2, Zsh and Oh-My-Zsh but I cannot move through words when pressing: ALT+left arrow or CMD+left arrow or something instead, when I press "ALT+right arrow" it prints [C and when ...
user avatar
14 votes
6 answers
36k views

How to change the default shell in iTerm?

I'm having some difficulties in changing the value of $SHELL in OSX's iTerm app. iTerm is starting in /bin/zsh, but the value of $SHELL doesn't seem to change. What I've done: Changed "command" as /...
user avatar
  • 308
21 votes
1 answer
5k views

Selecting text while jumping with cursor in iTerm2

I would like to know if it is possible to get text-editor-like functionality for selecting text in iTerm2. For example, in Sublime Text 3, I can do the following: ⇧ ⌥ → = Select ...
user avatar
12 votes
1 answer
3k views

Mailto links on websites open iTerm instead of Mail

In both Chrome and Safari mailto: links open up iTerm instead of Mail. This seemed to have started happening right around the same time I added a shortcut through Settings > Keyboard > Shortcuts > ...
user avatar
  • 277
8 votes
3 answers
8k views

Sending Control+Alt+ <char> to terminal in iTerm2

When I press Control + Command + i I would like iTerm2 to send the shortcut as C-M-i (i.e. ctrl+alt+i) to my terminal. I have How can I do that? I have tried with the following with no luck: Any ...
user avatar
4 votes
1 answer
644 views

Tell iTerm2 not to remember open windows on quit

After a recent upgrade of iTerm2 (I'm on build 1.0.0.20120203), when I open up iTerm2, it restores all of the terminal windows I had open. How do I disable this behavior so it doesn't "remember" how ...
user avatar
11 votes
1 answer
22k views

iTerm2 - Accessibility and Full Disk Access

Just installed iTerm2 and it asked me change some settings in Security & Privacy of macOS. At the moment I gave "Full Disk Access". Under "Accessibility" I see iTerm2 listed but without the ...
user avatar
6 votes
1 answer
2k views

How to have iTerm2 hotkey window slide up and down instead of fading

I'm using iTerm2, and my hotkey window used to slide down and then back up. A while ago, the animation changed to having it fade in and out. Is there any way to get it to go back to sliding? I prefer ...
user avatar
  • 163
3 votes
1 answer
517 views

How to open the Apple URL protocol x-man-page:// in iTerm and not Terminal (default)

Apple has some custom URLs defined and one of them is x-man-page. If you open a particular man page with it, it displays it in a nice yellow window (a provided profile for Terminal) with black text. ...
user avatar
  • 82.4k
2 votes
2 answers
5k views

Can I tell iTerm 2 to change color when I'm root

I would like to tell iTerm2 to have red text whenever I'm root when logged into a server. Note: I'm not able to change any configuration on the remote server.
user avatar
  • 1,170
1 vote
1 answer
375 views

Open the same terminal without switching spaces

I'm looking for an AppleScript (or anything, really) that will do the following: If a Terminal window is open in the current space, bring it to the front. If not, open a new one in the current space. ...
user avatar
  • 13
9 votes
2 answers
8k views

iTerm2 does not kill processes when tab is closed

If I work in terminal, and, say run rails server in it attached to the current terminal and then close the tab it will not terminate the process making it hang around indefinitely without ability to ...
user avatar
  • 191
8 votes
4 answers
6k views

Changing color of folders, files, execs on iTerm2

on iTerm2 bash If there any way to change the color when 'ls' so i can quickly know if it's a directory, a file, a script, exec? Just like the Ubuntu terminal so you know a directory color for ...
user avatar
4 votes
1 answer
822 views

iTerm2 keeps switching desktops using dropdown

I'm using multiple iTerm2 windows on different desktops on my El Capitan and It's irritating how it keeps switching desktops when using Quake-like drop-down termina. Steps to reproduce: 1) open ...
user avatar
1 vote
1 answer
2k views

iTerm2 - zsh - keep history of commands when opening a new pane

with zsh on MacOS Catalina, when I split my current window of iTerm2 by opening a new pane, I would like to be able to keep in this new pane the history of commands of previous pane (which is still ...
user avatar
5 votes
3 answers
3k views

Changing the title of an ssh connection without modifying remote machines

Is it possible to set the title of an ssh connection by just changing something on my local machine? I mean I want ubuntu@ip-10-50-10-152 in the following picture to be changed to a name I like. ...
user avatar
  • 561
5 votes
1 answer
6k views

Mac Terminal: Delete a word at time

In iTerm2, if I type /one/two/three/four/five and now if I want to delete five and write another string, then how do I delete the word five ? If I use CTRL + W, it deletes the entire command all the ...
user avatar
4 votes
1 answer
498 views

How to avoid unselect file dialog when pressing minus sign in Midnight commander on macOS

When I try to type a minus character (e.g. open -a TextEdit) in the MC subshell, instead of minus the Unselect dialog pops up. I'm using iTerm2 and Midnight commander via Homebrew.
user avatar
  • 713
3 votes
1 answer
60 views

How do I make searching unique per application or window?

I have iTerm2 and Chrome open. In iTerm2 I press Cmd+F to search for "###". Then in Chrome I search for something on the page using Cmd+F like the word "event" When I go back to ...
user avatar
  • 83
3 votes
1 answer
839 views

Changing iterm2 Terminal Color

Is there a way to bold the color of the current active terminal tab in iterm2? I do not see an option to do that on the appearance tab of preferences. I know I can change the tab style, but I still ...
user avatar
  • 31
2 votes
1 answer
3k views

How to switch off sharing of history between iTerm2 tabs when setopt command not found

I am experiencing the same problem as in this question: The history is shared between my iTerm2 terminal tabs: how can I switch that off?. As the user describes, my history is shared between different ...
user avatar
2 votes
1 answer
1k views

iTerm new window starts minimized?

For some reason, whenever I start iTerm or press CMD+N, it starts small in the top left corner, but instantly minimizes to my dock Is there a config that could be causing this? Where should I look ...
user avatar
  • 327