iTerm2 is an open source Terminal replacement for OS X

learn more… | top users | synonyms

49
votes
3answers
19k 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 ...
41
votes
5answers
19k 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 ...
20
votes
3answers
26k 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 ...
15
votes
3answers
4k 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 ...
15
votes
4answers
15k 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. ...
14
votes
3answers
17k 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 ...
13
votes
2answers
745 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
12
votes
2answers
9k 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 ...
11
votes
5answers
4k 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
1k 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 ...
10
votes
3answers
3k 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 ...
9
votes
2answers
5k 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
4answers
3k 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 ...
7
votes
1answer
596 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
295 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
2answers
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
2answers
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
3k 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 ...
5
votes
5answers
2k 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.
5
votes
1answer
588 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
2k 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 ...
4
votes
2answers
611 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, ...
4
votes
2answers
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 ...
4
votes
1answer
818 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 ...
4
votes
0answers
197 views

Can't scroll back after cat with mosh, tmux and iterm2 setup

My setup is the following: https://filippo.io/my-remote-shell-session-setup When I do apt-get update on my server I can see all the output and am also able to scroll back as I expect. When I do cat ...
3
votes
3answers
2k 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 ...
3
votes
2answers
4k 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
2k 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
411 views

Scrolling up and down in tmux session on OSX iTerm 2 and Macbook Pro

I have a Macbook Pro without dedicated PgUp and PgDown keys. What would be proper way to configure iTerm 2 and tmux so that I can scroll back tmux buffer with Fn+Up and Fn+Down (I think these usually ...
3
votes
1answer
436 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
1answer
1k views

Open multiple tabs in iTerm2 with a specific directories

I would like to know if this is possible. I want to set up some script or command that will open 5 tabs and each tab that will open will have their own directory specified All in the same window ...
3
votes
5answers
2k 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
157 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
79 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
2k 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
366 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
1answer
673 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 ...
2
votes
2answers
505 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
393 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
2answers
1k 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
395 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
348 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
336 views

GNU screen changes vim syntax highlighting colors

I am trying to use vim inside a GNU screen session, but whenever I open vim inside screen the syntax highlighting uses completely different colors when compared to when I open vim outside GNU screen. ...
2
votes
1answer
61 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
81 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
0answers
152 views

Mouse click only works once with iterm2/tmux/mosh

I'm trying to set up iTerm2 + mosh + tmux to do my remote work. I can get everything to connect up, but for some reason, the mouse response is funky. If I split my tmux window so I have two panes and ...
2
votes
1answer
128 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
0answers
82 views

iTerm2 Background image and split panes

Is it possible to have background image for the whole window and not every split pane itself? I can't find how to do it anywhere. Thanks in advance