iTerm2 is an open source Terminal replacement for OS X

learn more… | top users | synonyms

1
vote
0answers
156 views

(n)curses displays appear broken under iTerm2

When accessing any of the *-tui commands under CentOS/Red Hat, or any equivalents on other distributions, my display is completely broken and almost unusable. This is what authconfig-tui running ...
5
votes
1answer
977 views

How to restore my iterm2/zsh session after restart?

I use oh-my-zsh with iTerm2 on osx and I'd like them to retain the same tabs with the same directories and hopefully the same textual history after a restart. Currently after a restart iTerm reopens ...
0
votes
1answer
69 views

How to remap control-c to control-shift-c in iTerm2

I have tried a few things. I can't do the karabiner control to command because that breaks my workspace changing keys. I just want control-shift-c to kill/end (like control-c does) and have control-c ...
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 ...
16
votes
3answers
19k 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 ...
1
vote
1answer
1k views

Where is the .zshrc file on Mac?

I’m using iTerm and wanted to customize the look of my terminal window using Oh My ZSH!. And according to the documentation I need to change the ~/.zshrc file and add a ZSH_THEME value: Once you ...
0
votes
0answers
5 views

Is it possible to have a shortcut key to go to last tab in iTerm2?

I've looked everywhere and don't see any way to quickly go to last tab in iTerm2. Think of Ctrl+A A in Screen or Ctrl+B B in tmux. Looks like it's not possible natively, any way to fix it via some ...
1
vote
1answer
18 views

ls colors disappear after running zsh

I installed the latest version of zsh on my osx using brew and then went ahead and installed oh-my-zsh. Everything is fine and dandy, but where did my ls colors go? If I run a bash -l inside of that ...
10
votes
3answers
2k 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 ...
4
votes
1answer
251 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 ...
0
votes
0answers
14 views

iTerm2 + TMUX closing behaviour

I've just discovered tmux integration with iTerm2 and it's fantastic! The only thing that I'd love to change is the exit behavior on closing the window. The current behavior exit's the tmux session. I ...
46
votes
6answers
22k 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 ...
1
vote
2answers
79 views

Emacs cursor is invisible in tmux in iterm2

When I try to use emacs -nw inside a tmux pane under iterm2, the cursor is invisible. This behavior is present regardless of which theme I use in iterm2. I'm using emacs version 24.5 on Mac OS X ...
0
votes
1answer
83 views

How to change the color of the default title in iTerm2

Every time I execute a command, it's difficult for me to find where is the start point of the results comes from my last command. So I want to make the default line "Arthur-Mac-mini..." change color, ...
10
votes
4answers
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 ...
18
votes
4answers
5k 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 ...
1
vote
1answer
30 views

I can't replace line breaks in vim and iterm

In Vim in iTerm, I frequently encounter issues surrounding line breaks. For example, if I have a file containing the dreaded ^M most online tutorials will say that to perform a replacement I use a ...
0
votes
0answers
20 views

Copy colored output from iterm2 in Mac

Even though the Selection is Yes for "Copy to pasteboard on selection includes color and font style" I have tried few nightly builds. But all of them have failed. Latest tested: Build ...
0
votes
1answer
37 views

How to know the file size information and download progress indication in iterm2 terminal?

Sometime when I download any file from terminal there is no indication of how small or big file and no progress bar to know the progress. Is there a way to get these features?
0
votes
0answers
21 views

Running “subl” command started crashing ITerm 2.1.1 with Oh-My-ZSH

Up until a few days ago, when I would type subl it would open Sublime Text 2. I would use the subl command frequently to open files and directories. Today, I tried to run subl from the command line ...
1
vote
0answers
14 views

Name a tab in iterm2, even with pane splits

I see there are solutions to name tabs in iterm2 when there is a single pane, but it doesn't work well with multiple panes/splits. So if I have two terminals open in a split under a tab, I would need ...
0
votes
0answers
13 views

Find out current iterm2 color scheme?

I know that I can set my color scheme for iterm2 in Preferences -> Profiles -> Colors. I found a scheme that I like, but I can't remember which one it is, and the dropdown from which I selected it ...
0
votes
2answers
102 views

^[[O and ^[[I appearing on iTerm2 when focus lost

I'm using iTerm2 2.1.1 on Yosemite. No tmux. When iTerm loses focus (when switched to another application by Cmd-Tab or clicking another window), a ^[[I and ^[[O seems to be sent to the terminal. ...
1
vote
1answer
30 views

What is 'execute:' on the command line, and how to I avoid it?

So I am using iTerm 2 on mac OSX, running zsh in case any of this is relevant. I must have clicked something by accident, because this dialog appeared, and I can't seem to dismiss it: Everything ...
0
votes
0answers
19 views

Using iTerm2 to query a CouchDB show function, and syntax-highlight the printed 'html' output?

Is is possible to syntax-highlight the printed output in iTerm2 in the following scenario. I am querying a CouchDB show function which outputs html. An example of the command is as follows: curl -X ...
1
vote
1answer
47 views

Delete iTerm saved window arrangement

I have saved a window arrangement in iTerm2 that I want to remove. I found this file: ~/Library/Preferences/com.googlecode.iterm2.plist but it isn't really editable. How can I delete a window ...
0
votes
1answer
70 views

color scheme setup for iTerm

How do you setup color scheme of iTerm on Mac? For color scheme, I mean using different color to display folder name, file name, machine name, etc. thanks in advance, Lin
1
vote
0answers
15 views

How to have iTerm 2 change color based on the current directory

I'd like iTerm2 to change colors based on the current directory, for different client projects. How do I do that?
6
votes
2answers
3k 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 ...
1
vote
3answers
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 ...
13
votes
2answers
11k 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 ...
2
votes
0answers
177 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 ...
7
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, ...
2
votes
1answer
413 views

emacsclient super key or hyper key in iterm2

What the title says: I want to switch to using an emacs-server / emacs-client model instead of using the GUI for Mac OS X. I use iTerm2. I would like to map the function key (fn) to super or hyper. I ...
5
votes
5answers
3k 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.
0
votes
0answers
27 views

Readline stops working randomly

For some reason every 1-3 hours (depending on work load) my shell read command stops accepting input and hitting return renders the ^M character. Something like: Continue? After answering: ...
1
vote
0answers
53 views

iTerm2 hotkey window activates non-hotkey windows

When I set iTerm2's hotkey mode on Mavericks, opening the hotkey window also brings any open non-hotkey terminal windows to the front. Is it possible to have iTerm bring focus only to the hotkey ...
0
votes
2answers
24 views

Executing control statements in zsh?

This feels like a dumb question but I'm on a mac using iterm with zsh and I've been reading the zsh manual and am trying to execute ^Xh to query the completion parameters, but whenever I do ls ^Xh ...
0
votes
1answer
93 views

Disable mouse reporting in a terminal session after tmux exits unexpectedly

I currently use iTerm2 and frequently SSH into remote servers and start a tmux session. On all of those servers, when SSH'ing into them, I automatically create a tmux config that enables mouse ...
53
votes
3answers
21k 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 ...
0
votes
0answers
66 views

iterm2 resize pane/window with command

So iterm2 on the Mac has some proprietary control codes that let you change the profile by sending them to the terminal on the command line. I'm wondering if there's a similar way to set the window ...
1
vote
2answers
53 views

how to set .vim color scheme to vim editor OS X

I downloaded some .vim color scheme files in github and moved them by sudo mv ~.vim /usr/share/vim/vim73/colors then I wrote colorscheme ~.vim in vimrc. The original schemes already existed, are ...
1
vote
1answer
398 views

Increase/Decrease Font Size in iTerm2

Issue: I use laptop on the go, and connect to external monitor when in the office. Given that the external monitor is very large, I need to increase fonts in the existing iTerm2 window (usually one) ...
7
votes
2answers
4k 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 ...
3
votes
1answer
691 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 ...
1
vote
1answer
523 views

iTerm2 performance vs Terminal.app

I prefer iTerm2 for its features, but Terminal.app outperforms it in terms of responsiveness. I mostly notice this in Vim: iTerm gets choppy during scrolling and/or rapid cursor movement. Is there ...
23
votes
3answers
29k 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 ...
1
vote
0answers
21 views

Start new process as pane in iTerm

I work in iTerm a lot, and I am using a script that starts a new process. By default, the process starts in a new tab. Is there any way to tell iTerm that I want to start new processes in a vertical ...
0
votes
0answers
141 views

Highlight bash output in iTerm 2?

I've followed the instructions for installing Solarized on iTerm 2, on my new OSX Yosemite machine. It looks as though the background and basic colours are being applied, and $TERM produces ...
1
vote
0answers
33 views

iTerm2 not pasting newlines for long chunks of code

I’m having issues with iTerm2 not pasting newlines when I copy a certain number of lines and paste it into any interpreter. For example, if I copy the code below and paste it into the R interpreter, ...