iTerm2 is an open source Terminal replacement for OS X

learn more… | top users | synonyms

31
votes
2answers
10k views

How can I get control+left arrow to go back one word in iTerm2?

I was reading up in the Linux manual and I noticed that it said I could use control+left and control+right to move forward and back words in the terminal while editing. "Pressing Ctrl plus the ...
26
votes
4answers
8k views

With Bash + iTerm2, how to name tabs?

In iTerm2 (Build 1.0.0.20120203), I typically open several tabs, each of which has split panes , and is about one particular theme of work, for example revision control, coding, managing files, mysql ...
11
votes
3answers
8k views

Color scheme not applied in iTerm2

I haven't been able to apply any color scheme to iTerm2. It looks like that the Basic Colors are applied, but the ANSI Colors are not (as shown in Preferences>Profiles>Colors). Using Mac OSX ...
11
votes
5answers
3k views

Vim configuration slow in Terminal & iTerm2 but not in MacVim

Ideally, I want to use Vim from Terminal or iTerm2. However, it becomes unbearably slow so I had to resort to using MacVim. There is nothing wrong with MacVim, however my workflow would be much ...
11
votes
4answers
7k views

More crisp font for iTerm on OSX

On iTerm on OSX Mountain Lion the default Monaco font is not very good for white on black text Aliased text is ugly Anti-aliased text is too bold I would prefer more crisp anti-aliased font. ...
11
votes
2answers
13k views

Setting iTerm2 as the default terminal (OSX Lion)

I would like to set iTerm2 instead of terminal.app as my default terminal. Go2Shell for example let you open a terminal to the current directory in Finder. I want to ba able to use iterm2 instad of ...
9
votes
2answers
3k views

How to open Go2Shell preferences in Mac OSX?

I'm trying to change my default Go2Shell terminal to iTerm2. I've read that Go2Shell preferences are only accessible from the command line, but I'm struggling to find what command actually needs to ...
9
votes
2answers
2k views

Mac OS X: Command-Tab doesn't switch back to fullscreen app

Using the Spaces style fullscreen mode in OS X, I can easily Command-Tab out of a fullscreen app, but trying to Command-Tab back in doesn't take me back to that space, only switches the Menu Bar to ...
9
votes
2answers
658 views

Is there a keyboard shortcut to alternate between color schemes in iTerm2

I am using the Solarized color scheme in iTerm2 and it comes with two themes: one with a light background for daytime hours and one with a dark background for nighttime hours. I am currently ...
7
votes
1answer
467 views

Fancy colored rendering issue on osx 10.8 retina with iTerm

I use iTerm2, with oh-my-zsh and zsh and in my .zshrc file I set a couple of my prompts to the unicode bolt symbol as follows. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡%{$reset_color%}" ...
7
votes
3answers
867 views

iTerm2 Vim alt+right/left arrow

As a Linux user, I am very used to jump from word to word in vim/nano using ALT+left or right. This doesn't seem to work properly using iTerm, I am using zsh, I tried adding; bindkey -e bindkey ...
6
votes
2answers
325 views

Disable Cmd+Enter on iTerm 2

I'm using iTerm 2 on Mac, and whenever I press Command + Return the thing goes full screen. My big fat fingers can't help it, so I really need to turn it off. Any suggestions? Thanks in advance
6
votes
3answers
231 views

How to identify the terminal from a script?

And don't say "$TERM" – it's always xterm. How can a bash script tell what terminal it's running in, specifically whether it's iTerm, Terminal.app, or actually an xterm? I ask because reset does not ...
5
votes
1answer
2k views

Programmatically set the color of a tab in iTerm2?

My daily workflow includes me Launching iTerm2 Creating 3 tabs Setting one tab each to red, orange and yellow Changing to a specific path in each tab I would like to script this process; shell, ...
4
votes
1answer
2k views

Can I use the `<cmd>` key in terminal Vim at all?

Following on from my other recent question: How do I map <cmd>-<shift>-f to run Ack plugin in Vim? Is is possible to use the <cmd> key in Vim at all? If Vim doesn't recognise the ...
4
votes
1answer
1k views

iterm2 cannot toggle fullscreen when in 'top of screen' mode

I'm trying to toggle fullscreen in iTerm2 by pressing "cmd+enter". Unfortunately it doesn't work when 'top of screen' style is selected in the profile settings (as shown in the attached png). When I ...
3
votes
1answer
879 views

disabling 'full screen mode' in Lion (to use transparent full screen iTerm2)

I like using my iTerm2 window in transparent mode, full screen so I can code and see my desktop picture as well. I have upgraded to Lion and now when I enter full screen it gets rid of my desktop! ...
3
votes
1answer
283 views

How can I remap Control+e to Escape+Control+e in iTerm2?

I have set up a few custom keyboard shortcuts in iTerm2 to easily move the cursor around with the arrow keys, but now I'd like to remap Ctrl+E to be Esc, Ctrl+E because Bash 4.2 no longer auto-expands ...
3
votes
2answers
470 views

Can't compile tmux with iTerm support

I'm trying to compile the tmux that has iTerm2 support. This is the error I get: configure.ac:105: error: possibly undefined macro: AC_SEARCH_LIBS If this token and others are legitimate, ...
3
votes
1answer
151 views

Rename Iterm2 tab from within tmux

I can use the following function to rename a iterm2 tab and that works great. function rename_tab { echo -ne "\033]0;"$@"\007" } However, if I run this function while in a tmux session, then ...
3
votes
3answers
1k views

iTerm 2 window resizing

My iTerm 2 window is up against the menubar at the top of the screen. When I resize the window vertically from the top to the bottom, a small gap is always left. It never resizes down fully to the ...
3
votes
1answer
100 views

Add sound to keystrokes in iTerm2 / zsh

I've been searching for quite a while now, but haven't found anything. I want to spice my terminal up a bit more than just colorizing it – I also want to add specific sounds to keystrokes, newlines ...
3
votes
0answers
72 views

iTerm 2 running tmux session causes “startup disk almost full” randomly

Anytime I run a tmux session, disk space will randomly begin filling up and the computer will slow down, then everything goes back to normal. This happens periodically. I am using iTerm 2. Does ...
3
votes
1answer
873 views

iTerm2 vim cannot map alt key

I'm having trouble trying to map the alt-key bindings on vim in iTerm2. I want to map shortcuts for switching between buffers like this: map <A-Right> <C-w>l map <A-Left> ...
3
votes
0answers
289 views

iTerm2: How to get output of a shell command with applescript

I want to get the output of a shell command run through iTerm2's applescript into an applescript variable. I tried the following but it does not work: tell application "iTerm" activate try ...
2
votes
2answers
1k views

How do I get the numpad to work in vim using iterm2 on osx with term=xterm?

My numpad works in iterm2 (bash), but it inserts characters instead of numbers in insert mode for vim. How can I get vim to recognise the correct escape codes. I have tried editing the escape codes ...
2
votes
2answers
2k views

OSX: Possible to use Total Terminal with iTerm2?

As I understand it, Total Terminal is a thin layer on top of Terminal.app that adds some Yakuake-like features. My question is: Is it possible to use Total Terminal with iTerm2 as the "backend" ...
2
votes
3answers
1k views

ALT+arrow moving between words in ZSH and iTerm 2

I logged in on one of hosting provider servers and noticed ALT + left and ALT + right moved between words in a shell prompt in a screen. What kind of key bindings I need to configure and where to get ...
2
votes
2answers
420 views

Why doesn't tmux respond to shortcuts properly?

I'm using OSX 10.8.1 in combination with iTerm2, zsh and tmux via Homebrew. The beginning of my ~/.tmux.conf file looks like this: set -g prefix C-a unbind C-b bind-key a send-prefix set -sg ...
2
votes
5answers
989 views

Customize text editor and terminal to use non-monospaced fonts without the horrible results?

I want to experiment with all fonts, including those that aren't mono-spaced. I understand the reason for using monospaced fonts, but frankly they don't seem legitimate to me. For instance, one ...
2
votes
1answer
348 views

Map MacVim (mvim) movement keys in iTerm2

This question has been asked in various forms and there are a few blog posts around the net but I can't seem to find one that works consistently. I'm going to ask it for my (and perhaps other's) ...
2
votes
1answer
78 views

iTerm2: Alt-Dot functionality with Cmd-Dot

Is there any known way to achieve the "insert last command argument"-functionality that is usually available in Bash by typing Alt-. (Alt and period) on OSX using iTerm2? The ways I know this should ...
2
votes
1answer
256 views

Terminal colours on ssh connection

I connect to an Ubuntu installation I have on AWS via iTerm and the colours are not practical. For example the "blue on black" colouring of folders on list view is almost impossible to read. How can ...
2
votes
1answer
277 views

Start Midnight Commander on iTerm2 launch

What is the best method to make sure Midnight Commander is launched whenever iTerm2 window/tab is open?
2
votes
1answer
245 views

How to automatically restore window arrangement from last time in iTerm?

I have two old Macs, both have iTerm2 installed and could automatically restore window arrangement (tabs with different directories and colors) from last time after launch. I forget what ...
2
votes
1answer
44 views

Weird Tmux issue

When attempting to split Tmux windows by using commands, I get the opposite effect of what one should expect: The command tmux split-window -v Produces a horizontal split, while the command ...
2
votes
1answer
62 views

iTerm2: cd'ing into directory closes iTerm window

I have a directory that I'm trying to cd into. It's a simple Rails app my friend built. The weird thing is, when I try to cd into it, the iTerm window closes. I've tried moving it from the directory ...
2
votes
1answer
1k views

How to setup iTerm “Visor” option like TotalTerminal?

I configured my iTerm using this tutorial: http://technosophos.com/content/configure-iterm2-act-visor But I have few problems with it, for example when I am in fullscreen mode and I press CMD + Tab ...
2
votes
0answers
282 views

Powerline Patched Fonts on OSX 10.9.3 - iTerm2 & Chrome

TL;DR I'm looking for a working solution for rendering powerline characters on OSX in iTerm2 and Chrome. There's a lot of documentation around I've attempted to use several methods, none seem to work ...
2
votes
1answer
94 views

Coloured commands in iTerm

Previously I had a friend to set up my iTerm2 environment for me, and I got used to it. Since I changed computers, I now have to setup my environment again. I used to use ir_black as my iTerm2 theme, ...
2
votes
2answers
684 views

Keyboard shortcut for switching panes in tmux in iTerm2 on OS X

I have tmux installed with iTerm2 on OS X. While I can do Cmd+left/right to switch between tabs, I cannot seem to be able to switch between panes under the same tab using Ctl+b o (that is, Control ...
2
votes
4answers
502 views

How can I partially clear my terminal scrollback?

I want to partially clear my terminal scrollback history, but only from where I have selected with my mouse in the scrollback and up. Is this possible? I'm on a Mac, and I use iTerm2 and Terminal.
1
vote
1answer
1k views

Ubuntu purple terminal colors to iTerm2

I've been looking for a iTerm2 theme that resembles the default purple Ubuntu terminal but have had no success so far. Does a theme for the standard Ubuntu terminal exist for iTerm2 or will I have to ...
1
vote
1answer
2k views

iTerm2 zsh oh-my-zsh open tab with same directory

Hi i just installed iTerm2 and tried to open a tab with the same directory as the tab that open it. I tried Zsh: Open a new tab in the same directory answer but still can't get the directory ...
1
vote
3answers
114 views

Incorrect hostname in OS X?

I'm not sure why the hostname is now jessica-s-phone. I am on a public wifi, and some googling revealed that the hostname is set by a DNS, so is it possible my iTerm chose someones phone as the ...
1
vote
1answer
252 views

Split window programmatically with iTerm?

on my development workstation I often have to start the same commands every morning. zeus start, zeus server (booting rails via zeus), redis-server, and like 3 others. I know a lot of people would ...
1
vote
1answer
306 views

How can I trigger a notification from a remote terminal in OS X

I am running a long process on a remote shell. I would like to trigger a notification when the process is complete. This answer does not suffice, because the long command is on a remote server, so it ...
1
vote
1answer
181 views

How to make command+arrow go to begining and end of line in iterm2?

With the default settings, command + arrow_left switches to the tab on the left. How to change it so that it puts the cursor at the beginning of the line instead ?
1
vote
1answer
240 views

How to create iTerm2 color schemes?

The solarized project has a nice iTerm2 color scheme. Anyone know how to make those? Sure, it's just an XML file with values in it but it's a pain to edit that.
1
vote
2answers
2k views

How do I stop automatic changing of iterm tab titles?

After switching to using .bashrc instead of .bash_profile (I didn't like how the default terminal worked with one config file and utilities like screen with another), the behavior of iterm2 changed. ...