iTerm2 is an open source Terminal replacement for OS X

learn more… | top users | synonyms

9
votes
2answers
4k 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 ...
1
vote
1answer
14 views

iTerm2: Clear scrollback buffers for *all* sessions

In iTerm2 (I am using Build 2.1.4 as of this writing), how can I clear scrollback buffers for all sessions. I know that cmd+K will clear current session. Using the same key combination does not work ...
0
votes
0answers
8 views

Can I force iTerm2 to always use bright colors?

What the title says. Is there a setting to make iTerm always use bright versions of terminal colors without editing the colors themselves? My OS X terminal seems to be doing that by default, and the ...
0
votes
1answer
13 views

iTerm2 -> ssh -> gnu screen -> split window: scroll wheel not working

I'm using Mac OS X as a workstation. With iTerm2, I connect to a remote host (Ubuntu Server) using this command: ssh -t user@host screen -D -R -R But I can't get the scroll wheel to work correctly, ...
0
votes
0answers
10 views

Is there a zsh add-on or an iTerm addon that allows arbitrary string autocompletions?

I often find myself staring at a string that was printed in my terminal, I need to use it in a command, but don't want to move the mouse to copy/paste it. I'm wondering if zsh or iTerm support ...
3
votes
2answers
3k 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> ...
0
votes
1answer
99 views

Why does iTerm2 print out 1 at start?

my problem is that iTerm print out the 1 value on my zsh when i open it i can't figure it out why. I've checked the advanced setting in my profile configuration but it seems that nothing is added ...
67
votes
4answers
27k 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
4 views

iTerm2 profile - prompt for ip address to ssh?

One of my host is load balanced across multiple ips (10s of them) and I frequently want to ssh to it. My setup is in way that I cannot use the DNS to access them. I want to go to a specific host, say ...
1
vote
2answers
223 views

iTerm command click to open with Atom

I am trying to figure out how to change iTerm function when CMD+Clicking on a file in an iTerm window to have it open in my default editor, Atom. Currently, the CMD+click function in iTerm opens ...
0
votes
0answers
9 views

How do I remove ESC codes from iTerm output

Whenver I pipe command output from iTerm to a file, I seem to get escape codes in my output. Here's a snippet of a git grep command as an example some_commit_id:some_file_name:]0;user@repo: ...
10
votes
3answers
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 ...
5
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 ...
8
votes
3answers
4k 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, ...
0
votes
0answers
10 views

Scrolling up in iTerm2 shows previous Vim sessions

In iTerm2 (Version 2.1.4), when I scroll up to see previous commands, I'm seeing chunks of previous Vim sessions, which I don't want to see. Any idea why that would be happening and how to fix that? ...
5
votes
2answers
3k 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 ...
5
votes
4answers
329 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. ...
3
votes
4answers
4k 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. ...
0
votes
0answers
15 views

How can I get iTerm2 on OSX to copy only what I select?

iTerm2 has a very nasty habit of making an assumption of what I want to copy and paste from the terminal. Instead of just allowing me to copy exactly what I highlight, it will expand to what it ...
5
votes
4answers
2k views

OS X 10.11 (El Capitan) Making Zsh Very Slow

I just freshly installed El Capitan on my MacBook Pro. I had trouble earlier with the my terminal being too slow while typing in simple commands. I thought it might have been that I need to format my ...
0
votes
2answers
17 views

how to fix Tab key in iTerm2+tmux on OSX

when I want to press tab, I need press tab two times in tumx on OSX, how to fix it?
1
vote
4answers
124 views

Is there any way to set the default font to 16pts in iTerm2?

I am going through several fonts such as “Consolas” and “Source Code Pro” and noticed in iTerm2 there is no way to set default size to 16pts. Only 9pt, 10pt, 11pt, 12pt, 13pt, 14pt, 18pt, 24pt,... are ...
0
votes
0answers
37 views

iTerm2: Numeric keypad enter does not get mapped to <CR>

I've set up iTerm2 to map numpad keys to send correct xterm key codes as suggested in this answer. However, I have an issue with the Enter key: all I get is the bell in my shell. When I try to set up ...
14
votes
5answers
6k 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 ...
0
votes
1answer
63 views

Trigger an echo command after ssh in iterm2

I'm trying to trigger the following command after "ssh somehost": export PROMPT_COMMAND='echo -ne "\033]0;$HOSTNAME\007"' nothing seems to work, any suggestions?
0
votes
2answers
20 views

iTerm2 profile as an “app”

I have recently created a profile that opens nvim automatically, which works fine. However, is it possible to export it to a file/app so I can open nvim straight by ...
0
votes
0answers
55 views

iTerm2 color scheme not working

I have trouble setting up colors for iTerm2. I have already checked this answer and done everything it says: Color scheme not applied in iTerm2 But iTerm2 does not show any colour, besides white ...
1
vote
1answer
14 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 ...
0
votes
2answers
77 views

Command Line: z is installed but can't find the command

I recently installed iTerm2 and ZSH (with oh-my-zsh) after some months of very light usage of the stock Terminal on Mac OS. I heard of a tool called "z" and installed it via brew with brew install ...
0
votes
0answers
13 views

iTerm2 drop down on fullscreen app

Is anyone familiar with a workaround for the fact that iTerm2, when set to hotkey mode, switches to a non-fullscreen space rather than dropping down in the current space? The "current space" setting ...
1
vote
1answer
152 views

Key bindings broken in tmux 2.1

I have the following lines in my tmux.conf: bind C-n next-window bind C-p previous-window Then I have the following key mappings in ITerm2, which send send C-f C-p and C-f C-n to the terminal (my ...
0
votes
0answers
99 views

Zsh gives “permission denied” error on iTerm2

I configured my zsh by downloading the latest using homebrew on Yosemite. So the default shell is /usr/local/bin/zsh on iTerm2 application. However, when I try the command $ .. $ zsh: ...
12
votes
4answers
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 ...
11
votes
6answers
5k 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 ...
0
votes
1answer
54 views

Trouble installing fish shell on OS X non-admin user group

I am struggling to install the fish shell on OS X El Capitan. My user structure is setup so I have an administrator account and a standard account. The standard account is the one that I use and ...
0
votes
0answers
25 views

tmux + SSH client integration on Windows?

Are there any Windows SSH clients that support native tmux integration similar to iTerm2 on Mac OS X? E.g., iTerm2 can detect multiple tmux panes and displays them as separate iTerm2 tabs. I would ...
0
votes
1answer
28 views

After “:set paste” executed “insert mode's remaps” stop working - VIM (iTerm2)

I have this remaps in my .vimrc inoremap <C-d> <C-o>de inoremap <C-k> <BS> inoremap <C-l> <ESC> inoremap <C-j> <CR> They does work great, but after ...
1
vote
0answers
113 views

In iTerm2 how can I automatically connect to an existing tmux session using -CC?

I've found using iTerm2 and tmux -CC to be quite helpful tying the existing iTerm UI with tmux windows & panes. I'm trying to figure out how to automatically attach to an existing session at ...
0
votes
0answers
14 views

iTerm2 Pane navigation - Not by the order used

I have been using iTerm for a while on my Mac. I want to override the pane navigation to not use the order used. From the documentation, Cmd+] and Cmd+[ navigates among split panes in order of use. ...
4
votes
3answers
5k 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" ...
1
vote
3answers
291 views

Open iTerm2 with ctrl+ctrl?

I recently switched from TotalTerminal (formerly Visor) to iTerm2 on Mac OS X. I used to be able to open TotalTerminal with the shortcut ctrl+ctrl (two quick taps). Is this same shortcut possible in ...
0
votes
1answer
1k views

Remap control key in iTerm2 to caps lock key

I want to remap the control key to use the caps lock key in iTerm2. How can I do this?
0
votes
0answers
95 views

How can I stop callservicesd errors I find in Console?

I should have asked this question here, but I cannot move it from the other apple.stackexchange forum. I'm learning Terminal, coding, and scripting. Every so often I check my Console just to see ...
1
vote
0answers
40 views

iterm2: save all shell output and view without escape characters

I'm using iterm2 and I want to save all my scrollback buffer. There is an option that is supposed to do this but it saves all the escape characters such that a 90% of the characters in the log are not ...
10
votes
4answers
4k 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 ...
1
vote
0answers
24 views

tmux + iterm2 integration: can't maximize pane

Is there a way to do this? By this, I mean if you have split panes, you were able to maximize a pane with iterm2 with shift + command + enter. I believe it's possible to do this in tmux as well based ...
0
votes
0answers
10 views

Running bash_profile on reboot terminal

If I have a terminal (iTerm2) open on reboot, and ask for OS X to reopen currently open windows on start, it will reopen my terminal in the same directory, but .bash_profile won't be run. why? and ...
4
votes
1answer
264 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
1
vote
1answer
89 views

Mac OS X Terminal and iTerm2 cannot type '.' or '/'

As the title says, I'm unable to type the characters . and / in terminal.  Shift+. results in > and Shift+/results in ?, which means the keys actually work. How can I fix this?
0
votes
0answers
20 views

vim C-n Shortcuts with iTerm2 and SSH

I read about similar issues before but I'm not sure it's the same. I use vim on a server through SSH with iTerm2 on my Mac. For some reasons some bindings don't work in vim, e.g. <C-n> or ...