Questions tagged [iterm2]
iTerm2 is an open source Terminal replacement for OS X
362
questions
1
vote
1
answer
227
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 ...
1
vote
3
answers
2k
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 10....
4
votes
0
answers
729
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 ...
7
votes
1
answer
2k
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 ...
41
votes
6
answers
9k
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. ...
2
votes
1
answer
650
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 ...
14
votes
2
answers
5k
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 ...
4
votes
0
answers
853
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?
2
votes
1
answer
5k
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
0
votes
0
answers
116
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:
Continue?...
0
votes
1
answer
4k
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, ...
9
votes
2
answers
2k
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 ...
164
votes
5
answers
1.2m
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 ...
22
votes
1
answer
2k
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 ...
1
vote
2
answers
1k
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 ...
57
votes
4
answers
56k
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) ...
0
votes
2
answers
79
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
...
6
votes
1
answer
8k
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 ...
2
votes
0
answers
137
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
0
answers
2k
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 xterm-...
6
votes
1
answer
1k
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 ...
1
vote
1
answer
2k
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, ...
1
vote
1
answer
2k
views
"broken pipe" after every terminal command
I’m running Mac OS X 10.10 (Yosemite) with iTerm2 and Oh-My-Zsh. After every command I run—even if the command is successful—I receive the error “broken pipe.” How can I troubleshoot what is ...
2
votes
1
answer
695
views
iterm2 ssh is using escape chars instead of "esc", "left", "right" buttons
Silly question, but when I am ssh'ed inside iterm2, the arrow keys and esc become escape chars, e.g. right becomes "^[[C". In the faq it states:
For the normal mode, iTerm2 generates ESC [ ...
8
votes
1
answer
2k
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 ...
0
votes
3
answers
652
views
mapping jj to escape in macvim works but not in terminal vim
In my vimrc I have:
inoremap jj <ESC>
Using the latest macvim I can hit jj and i'll jump from insert to command mode, but using the same vimrc with just regular vim in iterm2 it just inserts ...
0
votes
1
answer
249
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?
1
vote
0
answers
374
views
Iterm on top of all windows? [duplicate]
Is there a possibility for Iterm to always be on top?
I have seen some issues but don't know whether it's already implemented.
Issue 2640 in iterm2: Always on Top function
-1
votes
1
answer
129
views
How send tmux prefixer to remote server using iterm2
This is my first time using tmux and I have a problem.
I have a remote server that I am connecting to it using ssh(using iterm2). Since opened, when I try to send commands like ctrl+b+c command+b+c ...
3
votes
2
answers
3k
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 ...
2
votes
0
answers
350
views
tmux monitor-activity -- active activity vs stopped activity
I'm curious if it is possible to have a different visual indicator for active activity (e.g. stream of text) and stopped activity (e.g. command executed, printed a few lines and stopped) in an ...
2
votes
2
answers
16k
views
How can I colour-code files and directories in my shell environment?
I've seen many screencasts online in which the files and directories are colour-coded differently for ease-of-use. I'd like to achieve the same on in my bash terminal, on OS X 10.9 and using iTerm2. I'...
2
votes
1
answer
348
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 ...
13
votes
3
answers
19k
views
iTerm2 Background image and split panes
Is it possible to have a background image for the whole window and not every split pane itself? I can't find how to do it anywhere.
11
votes
1
answer
4k
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 ...
10
votes
2
answers
6k
views
iTerm2 pin Visor (hotkey) window
Is there anyway to pin (keep on top) the Visor / hotkey window for iTerm2?
Every time I give focus to another window (e.g. Chrome for documentation), iTerm2's hotkey window disappears. I have to ...
0
votes
1
answer
1k
views
ssh session immediately on starting xterm
What's the most elegant way to start an xterm window that, instead of opening a bash shell for the local computer and requires me to execute my ssh command manually, opens an ssh session for remote ...
9
votes
4
answers
5k
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.
...
1
vote
2
answers
4k
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 ...
0
votes
1
answer
419
views
Vim starts with beginning of a "change" command
I'm having an issue with vim startup. Whenever I run vim somefile, it starts as though I pressed c just after startup. So, if I then try to immediately jump to the end of the file with G, it instead ...
0
votes
1
answer
54
views
Mac OS X - iTerm updates causing multiple binaries
My question is basically, how do I solve this:
Every time I update iTerm a new binary is created and since I use Alfred, my instinct is to just type a name and hit Enter, so I don't even know if I am ...
0
votes
1
answer
930
views
Create iTerm2 startup configuration
iTerm allows one to save a window arrangement, I'd like to know if (and then how) I can extend this facility to do the following:
Save the name of each tab so that each tab in the restored window ...
1
vote
0
answers
88
views
Constant name of iterm2 tab
I can change the title of terminal tabs in iTerm2 by pressing CMD-I and setting some name. But as soon as I open e.g. vim and close it, tab name is reset to what my prompt says, instead of being "...
9
votes
1
answer
3k
views
iTerm2 2.0 Unable to resize the main window
Ever since I updated to the latest version, my iTerm window is not taking full screen. Even more weird the Maximize/ minimize buttons are missing. This 50% window arrangement is really irritating. I'...
1
vote
0
answers
94
views
Ruby ri output not coloured in iTerm 2
When I run Ruby ri in an iTerm 2 terminal window, the output is not coloured and I don't know why. Other programs such as Vim work with colour properly.
Running ri -f ansi Array.sort results in ...
3
votes
1
answer
2k
views
Input accents in iTerm with international keyboard
I have an international keyboard where accents are inserted doing
ALT+` e ==> è
ALT+e e ==> é
In Terminal.app this works correctly, in iTerm2 it doesn't. I get a bell sound when I press ...
1
vote
1
answer
232
views
Possible to bind "Switch to Fullscreen Space" to key combo?
I have several "permanent" Spaces in use and bound to CTRL + 1, 2, 3
I'm running iTerm2 in full screen mode and would like to find a way jump straight to the iTerm "Space" with a key combo (e.g. ...
20
votes
2
answers
23k
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 ...
0
votes
2
answers
760
views
Why does iterm2 toggle font rendering with every other boot
I don't reboot my mac very often, so I can't really state if this occurs with every reboot/relogin, but I dare to say, pretty much every time the font rendering of my iterm2 becomes thicker or thinner ...
0
votes
1
answer
386
views
zsh and Ruby print issue
Has anyone come across an issue where Ruby's print method leaves behind a % at the end of the line using zsh?
I'm using oh-my-zsh (https://github.com/robbyrussell/oh-my-zsh) with iTerm2.
Here is an ...