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

learn more… | top users | synonyms (1)

57
votes
7answers
29k views

What is the difference between iTerm2 and Terminal?

I keep hearing that iTerm2 is much better than Terminal. I downloaded iTerm2 today and played around with it, but I couldn't see what is so much better about iTerm2. iTerm2 seemed just like Terminal. ...
22
votes
2answers
9k views

How can I save tabs in iTerm 2 so they restore the next time the app is run?

Can I save tabs on exit in my iTerm 2, so I don't have to open same directories again after restart? Like Chrome does, for example. I couldn't find such option in settings. Maybe "Arrangements" is ...
19
votes
3answers
8k 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 ...
16
votes
1answer
5k 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 ...
11
votes
1answer
2k views

Using tmux and pbpaste, pbcopy, and launchctl

I have discovered that tmux breaks pbpaste, pbcopy and launchctl. Is there a good way to make it play nice with these tools?
9
votes
4answers
2k 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 ? ...
9
votes
4answers
1k 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 ...
7
votes
6answers
392 views

Completion for git commands

I recently switched from using an Ubuntu box for the last 7 years to a Mac. I have read other posts like Switching from Ubuntu to OS X and I'm lost and What is the difference between iTerm2 and ...
7
votes
3answers
2k 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 ...
7
votes
3answers
2k 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 ...
5
votes
4answers
3k views

iTerm2/Terminal full screen

Why is it not possible to have iTerm2 or Terminal app take up the full available space on the screen. Let me show an example: It's hard to see but if you look on the right and bottom edge, there is ...
4
votes
5answers
263 views

Are there any global key combinations suitable or specifically reserved on OS X for user assignment?

I'm trying to identify an appropriate global hotkey to set in iTerm2's preferences for showing/hiding it: I'd like to avoid any conflicts with other applications' hotkeys or other future use. Are ...
4
votes
3answers
2k views

Is it possible to have bash escape spaces in pwd?

I'd like to copy the current directory to the clipboard, something like: pwd | pbcopy. However, pwd does not escape the space, so something in "Application Support", for example, doesn't copy ...
4
votes
3answers
763 views

When Terminal forks process, current app loses focus

While I'm running some program in Terminal (or iTerm2), when the program forks the process, the OS X desktop switches focus from the current application to the forked process. When this happens, the ...
4
votes
1answer
445 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 ...
4
votes
1answer
352 views

Control not working in iTerm 2 when using Programmer Dvorak keyboard layout

I'm using the Programmer Dvorak keyboard layout and found that the Control key does not work in iTerm 2. Emacs is unusable as a result, and I can't interrupt processes with Ctrl-C. Interestingly, the ...
4
votes
1answer
1k views

Open iTerm2 SSH session in new window instead of new tab

Now that I figured out how to set iTerm2 as the ssh:// URL handler, I'd like iTerm2 to respond to an ssh URL by opening a new window instead of opening a new tab in an existing window. Is this ...
3
votes
1answer
1k 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 ...
3
votes
1answer
935 views

open new tab in iTerm and execute command there

I have found way to open new tab in iTerm: newtabi() { osascript -e 'tell application "iTerm" to activate' -e 'tell application "System Events" to tell process "iTerm" to keystroke "t" using ...
3
votes
1answer
2k views

For iTerm2, how do I make the working directory appear in the window title?

I recently switched to iTerm2 from the default Terminal app and have a usability issue. On Terminal, the working directory you are in shows up on the title bar along with the process and pixel ...
3
votes
1answer
490 views

Do I need to buy Growl in order to use the iterm2 growl feature?

Seems the notification is not working, or do I need to buy the Growl from App Store in order to use it?
3
votes
2answers
30 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.
3
votes
1answer
52 views

How does Sublime open file with cmd+click on its path in Terminal?

For example: $ ls -lsa 4 -rw-r--r-- 1 denis 404 Jul 16 18:36 pgadmin.log cmd+click on pgadmin.log Sublime opens pgadmin.log (if path is 'pgadmin.log:12', it opens it and sets cursor to 12th ...
3
votes
3answers
366 views

iTerm ZSH - Missing Right Prompt

I'm using oh-my-zsh and iTerm2. I've also enabled the zsh-vim-mode plugin from oh-my-zsh. One of the annoyances I've encountered is my right prompt (RPS1 & RPROMPT) doesn't seem to show up. I'd ...
3
votes
1answer
422 views

Automating terminals at startup

Is there any way to automate a bunch of terminals starting up at once. I find myself opening several windows and running the same sequence of commands in various tabs. I'd like to stick all this in a ...
3
votes
1answer
102 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 ...
3
votes
1answer
870 views

How to remap tmux split pane keys?

On my linux machines, for my terminal shell I have tmux keys mapped to allow me to split windows and then switch between new panes. With or without these mappings I can't figure out how to remap the ...
3
votes
2answers
329 views

How to set an iTerm2 startup command

How do I set a command on a profile so that when I start a new terminal window, it fires off that command. Specifically, I'd like to be able to set my virtualenv with: workon ENV So that it starts ...
3
votes
1answer
103 views

How to find delay when launching new Terminal (iTerm)

When I press CMD+N in iTerm2 to bring up a new iTerm window, sometimes it takes 10 seconds before I get my prompt. If I immediately repeat the process, the whole thing takes 1 second. To me this ...
3
votes
0answers
291 views

How do I re-associate HTTP links with my browser in OS X?

I installed iTerm2 the other day, and was playing around with it. In the process I seemed to have messed up the handling of HTTP hyperlinks on my system. Sometimes (annoyingly, not every time, which ...
3
votes
1answer
537 views

vim not working under iTerm2

Basically, vim behaves strange under iTerm2 (it works normally in Terminal). It sets the cursor in a non existing lines, it displays garbage (content from other lines) when I try to edit a line in a ...
2
votes
2answers
2k 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.
2
votes
1answer
458 views

LANG variable wrong in iTerm2, where's the bug?

Today I noticed that when opening TortoiseHG the app was in Dutch (partially, not fully translated it seems). Looking around in my environment I found out that LANG=nl_NL.UTF-8. It is indeed true ...
2
votes
1answer
690 views

What do the different colors of the tab title in iTerm2 mean?

While using iTerm2, I have noticed that sometimes the color of the title of a tab changes to pink with a loading indicator or changes to red. What do these things mean?
2
votes
1answer
670 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 ...
2
votes
2answers
1k views

How to customise .inputrc to make command-delete and alt delete delete line and word in terminal?

I'd like to add a little bit of consistency between editing text on the terminal and editing text in normal OSX programs. I use iTerm2, but I imagine any solution would involve using readline and ...
2
votes
2answers
981 views

Why does iterm2 close new sessions immediately?

I've made some changes to my .bashrc file in my new MacBook, mainly aliases for common commands. Shortly after, iterm2 immediately closes every new session or tab with the following cryptic message: ...
2
votes
2answers
5k views

How do I get vim to work at 256 colors in iTerm?

I just got a new iMac, and installed iTerm (0.10). On my last laptop 256 color mode worked fine, but I'm having trouble getting this to work on my new Mac. I copied over all the settings, set $TERM ...
2
votes
1answer
68 views

OS X Terminal window disappears on launch

I just unwrapped a MacBook Pro (OSX 10.9.3). I used the Migration Assistant to bring things over from my old mbp, and most everything seems to be working except something very important: the Terminal ...
2
votes
1answer
336 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?
2
votes
2answers
38 views

History commands render incorrect on Bash Vi mode

I'm having this werid and really annoying issue in bash vi-mode. Env: Mac 10.9.2, iTerm 2 1.0 or Terminal.app, $TERM={screen-256color|xterm-256color|xterm|vt} Repro steps: Run some long commands ...
2
votes
2answers
161 views

open iTerm drop down console on different screen

I use iTerm since a few days, and when i press my hotkey, it'll drop down nicely, from top of the screen, but ... on the wrong one. I have a macbook pro with mountain lion, and i connect it to a 24" ...
2
votes
0answers
65 views

de-grouping iTerm2 windows

Activating iTerm2's "hotkey window" (i.e. drop-down console) also brings to front all other iTerm2 windows. Is there a way to avoid this, making OS X treat each window as a separate application rather ...
2
votes
2answers
65 views

iTerm2, unicode and sympy

In my both Mac (OS X Mavericks) and Ubuntu machine, I have installed sympy that is a python library for symbolic mathematics. Part of sympy is the pretty print functionality that uses unicode ...
2
votes
0answers
54 views

How to prevent OS X's 'screen' command from resizing the terminal upon entry?

I usually run my terminal sessions in 132 character wide mode in iTerm. However, when I start the 'screen' command, it re-sizes the terminal back to 80 characters. Is there a way to prevent this?
2
votes
1answer
751 views

Tmux with iterm2 integration won't start when invoked with tmux -CC

I'm using iterm2 Build 1.0.0.20130302 and would like to get tmux working. I followed the instructions at: https://code.google.com/p/iterm2/wiki/TmuxIntegration Everything compiled and installed ...
2
votes
0answers
329 views

How to sent the Ctrl+Alt+Del key combination via iTerm2?

We use the Apple "Pro Keyboard", which is a USB keyboard with model number M7803, and iTerm2 build 1.0.0 with "ipmitool sol activate" running. Our goal is to sent the Control+Alt+Delete key ...
2
votes
1answer
377 views

iTerm2 save window/tabs on exit?

I tried to save a window arrangement but when I open iTerm it opens two windows: one with my saved arrangement one with no arrangements How can I make iTerm2 remember my Window/tabs layout?
2
votes
0answers
171 views

How to change color profiles on ssh iterm2 on SSH?

mac os x lion; Using Iterm2; I wish to change my iterm2 color profiles if I do ssh on terminal. Can this be done ?
1
vote
2answers
6k views

ls output does not have color while SSHing to another machine with iTerm2, but does with Terminal

Just as the title says, when I ssh to my work Fedora server with iTerm2 I don't get color ls output. When I ssh to the same server with OS X's default Terminal app, ls color output works just fine. ...