iTerm2 is an open source Terminal replacement for OS X

learn more… | top users | synonyms

42
votes
2answers
15k 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 ...
34
votes
4answers
13k 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 ...
16
votes
3answers
18k 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 ...
12
votes
4answers
11k 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
3answers
12k 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
2answers
3k 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 ...
10
votes
2answers
577 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
10
votes
2answers
951 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 ...
9
votes
2answers
4k 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
3answers
2k 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 ...
8
votes
2answers
4k views

Powerline Patched Fonts on OSX 10.9.3 - iTerm2 & Chrome

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 ...
7
votes
1answer
539 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%}" ...
6
votes
3answers
2k 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 ...
6
votes
3answers
263 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 ...
6
votes
1answer
3k 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, ...
6
votes
4answers
2k 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 ...
5
votes
1answer
3k 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 ...
5
votes
1answer
419 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 ...
4
votes
1answer
1k views

Remote server, iTerm2, and tmux integration

I want to be able to start a tmux session on a remote server, and then use iTerm2's native windows and split screens on my local machine. For example, let's say my remote server has a tmux session ...
4
votes
1answer
2k 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
1k 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
2answers
3k 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" ...
3
votes
1answer
234 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 ...
3
votes
2answers
548 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
5answers
1k 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 ...
3
votes
1answer
1k 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 ...
3
votes
1answer
515 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
1answer
127 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
77 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
1k 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
334 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
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
466 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
1answer
379 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
351 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
2k 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
1answer
329 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
2answers
777 views

mac os x byobu vertical split using iTerm, tmux, zsh

How to get vertical split on Mac OS X in byobu? Ctrl + F2 is not working. It open new window instead of spliting the current. In oposite spliting horizontaly with shift + F2 works ok.
2
votes
1answer
52 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
75 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
4answers
1k 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.
2
votes
1answer
30 views

Unintentional vi mode in iTerm on Mac?

I occasionally find that while working in iTerm the default Readline key bindings are replaced with the vi keybindings. For example, I will try to go to the beginning of the line with ctrl-a, and ...
2
votes
1answer
178 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
1answer
262 views

How do I change iTerm2's visual bell to just a flashing screen?

I know I have seen this set on other computers, but I'm uncertain how to change this myself. Also, I've tried changing bell.png in: ~/Applications/iTerm.app/Contents/Resources/bell.png However, I'd ...
2
votes
2answers
921 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 ...
1
vote
3answers
502 views

iterm2 - open new tab with same profile

I'm switching from Terminal.app Pretty straightforward, but I can't find it in the settings: I'd like that when I open a new tab (with cmd-t (or btw also with oh-my-zsh's osx plugin's tab command)), ...
1
vote
1answer
2k 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
2answers
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
259 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 ...