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

learn more… | top users | synonyms (1)

100
votes
9answers
77k 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. ...
60
votes
8answers
31k 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 ...
54
votes
4answers
40k 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 ...
36
votes
4answers
9k 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.
23
votes
1answer
12k 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 ...
20
votes
1answer
4k 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?
14
votes
4answers
7k 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 ? ...
14
votes
5answers
7k 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 ...
12
votes
6answers
7k 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 ...
12
votes
2answers
3k views

How to open a new tab in iTerm in the same folder as the one that is open?

I'm using iTerm for my command line needs, and when I open a tab using ⌘T I want it to open the tab cd'ed to the same location as the tab that was open when I hit ⌘T (instead of opening in my ...
11
votes
1answer
7k 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 ...
10
votes
5answers
3k 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 ...
9
votes
2answers
10k 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 ...
9
votes
3answers
4k 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 ...
9
votes
2answers
7k 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 ...
8
votes
2answers
4k views

Changing the default size of iTerm2 when it opens

I feel like this is a pretty stupid question but I Googled it and played around with it and still didn't figure it out so here we go: When I open iTerm2, it opens in a default size. How can I set it ...
8
votes
3answers
4k 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 ...
8
votes
1answer
3k views

In iTerm2 Command Click on URLS does not work when inside a tmux session

When not inside a tmux session, Command-Click on URLs works flawlessly. How can I make links clickable in iTerm2 when inside a tmux session? When hitting Command the mouse pointer changes to the ...
8
votes
2answers
1k views

Can I get mac notification when a Tab has new output in iTerm2?

You know, iTerm2 will change the color of the tab to red or purple. But sometime when I run a long job in one tab, I have to check if it's done frequently. So.. can I get notification when there's new ...
8
votes
1answer
3k 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 ...
8
votes
3answers
3k 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 ...
8
votes
3answers
5k 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 ...
7
votes
6answers
1k 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 ...
7
votes
1answer
2k views

How to highlight errors and warnings on iTerm terminal output?

I am looking for a solution that would allow me to use color highlighting to a set of important output messages inside iTerm terminal application. Things to highlight: application logs file ...
7
votes
2answers
3k 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 ...
6
votes
2answers
1k 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 ...
5
votes
1answer
3k 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 ...
5
votes
2answers
2k 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 ...
5
votes
3answers
5k views

Remapping keys in iterm2

I'm trying to remap some of the default key combinations in iTerm2, and would like to understand what is going on when I bind keys to "Send Hex Codes". A previous post helped me get started with ...
5
votes
2answers
530 views

iTerm2: How to change the color used to highlight search results?

It seems that iTerm2 is hardcoded to highlight search results using a yellow background color. I tried both the latest release and the nightlies but could not find a way to change that color. Did I ...
5
votes
1answer
2k 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 ...
5
votes
1answer
8k 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?
5
votes
1answer
121 views

Is there a way to force clockwise pane rotation in iTerm2 with the shortcut keys?

I've often found that when using iTerm2, I'll have like 3 or 4 panes open in one tab. And the shortcut keys for moving between them Cmd + ] and Cmd + [ are very useful, but unpredictable. The reason ...
4
votes
1answer
1k views

unknown option: mode-mouse with iterm, tmux

Reset my computer and iterm2,tmux now complaining about my .tmux.conf having setw -g mode-mouse on set -g mouse-select-pane on set -g mouse-resize-pane on set -g mouse-select-window off set -g ...
4
votes
3answers
9k views

What is the Applescript command to show or hide iTerm2 window

Does anybody know the Applescript command to show or hide a iTerm2 terminal window? I use iTerm2 in a guake style command window and currently using one window and many tabs. My use case: I managed ...
4
votes
1answer
906 views

Delete key doesn't work in vim on iTerm2

Firstly, I typed some thing on insert mode, like Hello At this stage, if I didn't exit from insert mode, delete works and can delete the whole word if I want. If I quit insert mode, and open ...
4
votes
1answer
542 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
2answers
7k 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 ...
4
votes
3answers
253 views

Remove iterm from cmd+tab apps

I was using TotalTerminal to get visor like terminal on a shortcut. But TotalTerminal is abandoned so I have switched to the iTerm2. My problem is that when I use a shortcut to trigger iTerms visor ...
4
votes
3answers
5k views

chsh doesn't change $SHELL

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 ...
4
votes
1answer
807 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
750 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 ...
4
votes
1answer
118 views

update_terminal_cwd demystified please?

I am trying to find the documentation on what, exactly, the printf command is doing in update_terminal_cwd. If you didn't know already, the update_terminal_cwd function is defined (at least on Mac OS ...
4
votes
1answer
8k 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 ...
4
votes
1answer
727 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 ...
4
votes
2answers
131 views

terminal custom commands source every time

After following this comment I added all my startup/alias commands to ~/.bashrc file and in ~/.bash_profile I added source ~/.bashrc But still my aliases are not working. I have to manually source ...
4
votes
0answers
676 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 ...
3
votes
2answers
16k 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. ...
3
votes
1answer
495 views

How to find out which terminal app (iTerm or Terminal) is running from within bash

I need to have different color schemes for each of the two terminal types I use. I can set it in the .bash_profile as mentioned here. But how can I tell it to differ depending whether its a iTerm2 or ...
3
votes
3answers
805 views

Terminal/iTerm2 issue: reverse-i-search trims off command

I've been having this issue since 10.9. cd into a reasonably long path, e.g., cd /Volumes/Storage/backup/long/path Enter a moderately long command, e.g., curl -X GET http://localhost:8888 ctrl+R, ...