Questions tagged [iterm]

iTerm is a third party replacement for the built-in Terminal application.

Filter by
Sorted by
Tagged with
4
votes
1answer
703 views

Search across all tabs in iTerm2

Is it possible somehow to search across all open tabs/sessions in iTerm2? I'd like to do something like a regular search (Cmd+F), searching the scrollback buffer, but across everything I have open ...
4
votes
2answers
2k views

How can I make iTerm2 *cd* into a directory by clicking on *ls* results?

Would it be possible to make some sort of remap where command-clicking or highlighting some text in the terminal triggers iTerm2 to attempt to cd <text>? Would make life somewhat easier when ...
4
votes
1answer
568 views

iTerm2 - Disable same commands across tabs

Terminal app in Sierra keeps crashing so I switched to iTerm. But iTerm tabs behave weirdly. Whatever I do in one tab automatically replicates across all open tabs! Am I missing some setting to turn ...
4
votes
2answers
2k views

Change iTerm2 Default profile preset with “defaults write…”

I want to do this in my dotfiles script. I managed to download the preset I want using curl and open it, but I don't know how to set it in the default profile: curl -L https://raw.githubusercontent....
4
votes
2answers
4k views

How to customize .inputrc to make Command-Delete and Option-Delete delete lines and words in iTerm 2?

I'd like to add a little bit of consistency between editing text in the terminal and editing text in normal OS X programs. I use iTerm2, but I imagine any solution would involve using readline and ....
4
votes
1answer
586 views

iTerm2 - How to show alternate screen in iTerm2?

In Terminal.app, there is a shortcut to Show Alternate Screen: Shift + Command + ↓ Is there a shortcut to do the same thing in iTerm2? If no, is there a way to assign one? How?
4
votes
1answer
605 views

Tell iTerm2 not to remember open windows on quit

After a recent upgrade of iTerm2 (I'm on build 1.0.0.20120203), when I open up iTerm2, it restores all of the terminal windows I had open. How do I disable this behavior so it doesn't "remember" how ...
4
votes
3answers
2k views

Generic exit function for iTerm2

I've recently begun to use iTerm2 instead of the macOS Terminal application and I'm really happy with it. I'm very used to use to exit command to close the instance that currently has focus. With ...
4
votes
2answers
2k views

Changing the title of an ssh connection without modifying remote machines

Is it possible to set the title of an ssh connection by just changing something on my local machine? I mean I want ubuntu@ip-10-50-10-152 in the following picture to be changed to a name I like. ...
4
votes
2answers
5k views

Suspended (tty output) when launching editors like vim, vi, emacs, or nano

I've been using Oh-My-ZSH for a few weeks now and it's been a great experience. Just today, though, terminal started acting strangely. When I try to run an interactive terminal editor like vim, vi, ...
4
votes
3answers
4k views

How can I get iTerm 2 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 ...
4
votes
1answer
1k views

Control not working in iTerm 2 when using Programmer Dvorak keyboard layout

I'm using the Programmer Dvorak keyboard layout and found that the Control key does not work in iTerm 2. Emacs is unusable as a result, and I can't interrupt processes with Ctrl-C. Interestingly, the ...
4
votes
1answer
1k views

Automating terminals at startup

Is there any way to automate a bunch of terminals starting up at once. I find myself opening several windows and running the same sequence of commands in various tabs. I'd like to stick all this in a ...
4
votes
1answer
742 views

Is it possible to temporarily remove margin from iTerm2 window?

I just wondering whether its possible to remove the left, right and top margin (or just all margin) temporarily in iTerm2 windows. My goal was to make the vim-airline looks better in iTerm2 by ...
4
votes
2answers
626 views

How to find delay when launching new Terminal (iTerm)

When I press CMD+N in iTerm2 to bring up a new iTerm window, sometimes it takes 10 seconds before I get my prompt. If I immediately repeat the process, the whole thing takes 1 second. To me this ...
4
votes
1answer
2k views

vim not working under iTerm2

Basically, vim behaves strange under iTerm2 (it works normally in Terminal). It sets the cursor in a non existing lines, it displays garbage (content from other lines) when I try to edit a line in a ...
4
votes
2answers
250 views

terminal custom commands source every time

After following this comment I added all my startup/alias commands to ~/.bashrc file and in ~/.bash_profile I added source ~/.bashrc But still my aliases are not working. I have to manually source ~/...
4
votes
0answers
685 views

Writing to routing socket: not in table, Why?

▶ netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.100.1 UGScI 15 0 en0 10.9.4/...
4
votes
0answers
1k views

How to sent the Ctrl+Alt+Del key combination via iTerm2?

We use the Apple "Pro Keyboard", which is a USB keyboard with model number M7803, and iTerm2 build 1.0.0 with "ipmitool sol activate" running. Our goal is to sent the Control+Alt+Delete key ...
3
votes
2answers
72 views

Why is the width of `~` different than `➜` on iTerm2 when using zsh with spaceship-prompt?

Using iTerm2. Installed zsh, spaceship-prompt and FiraCode. Why is the width of ~ different than ➜?
3
votes
1answer
3k views

Can I make tmux scroll from my trackpad?

I want to set up iTerm2 to pass scroll events to tmux, so I can trivially enter (and exit) scrollback mode for whatever pane is active. Is this possible to do with iTerm2, or automation of some sort, ...
3
votes
1answer
2k views

iTerm2 more contrast to active tab

Is there a way using iTerm2 to give the active tab more contrast compared to the rest of the tabs?
3
votes
3answers
5k views

Terminal/iTerm Autocomplete “greyed” functionality?

Not too sure how to describe this... but I saw this on a person's computer a cafe today and didn't get a chance to ask him what plugin/application he was using -- I think it best to illustrate with ...
3
votes
1answer
4k views

What do the different colors of the tab title in iTerm2 mean?

While using iTerm2, I have noticed that sometimes the color of the title of a tab changes to pink with a loading indicator or changes to red. What do these things mean?
3
votes
1answer
187 views

How do I switch tabs when using iTerm2 with Z shell

How do I switch tabs when using Z shell on iTerm2? I have already tried all the possible key combinations. Here is an image of my current setup: OS: macOS Mojave 10.14.4 (18E226) iTerm2: Build 3.3....
3
votes
1answer
1k views

Do I need to buy Growl in order to use the iterm2 growl feature?

Seems the notification is not working, or do I need to buy the Growl from App Store in order to use it?
3
votes
1answer
2k views

vim arrow keys inserting strange character in iterm2

vim escape & arrow keys are inserting strange character (the letter q in my case) but works perfectly if launched in a tmux session or with terminal.app Someone having the same problem?
3
votes
2answers
143 views

iTerm in a mode I'm not familiar with. How do I get it back to normal mode

When I am running on the command line using iTerm, it is in a different mode than I'm used to, shown in the images below. When I try to type a command it shows all the previous variations of that ...
3
votes
2answers
77 views

How can I find which Control-Command keys are mapped to particular programs?

I am using iTerm2 under High Sierra 10.13.6. iTerm2 lets me assign Control-Command key combos to particular actions. This mostly works fine, but at least two of these do nothing: Control-Command-B and ...
3
votes
2answers
2k views

How do I open two tabs in a split pane in iTerm?

I have a split pane iTerm window I would like to have two tabs in the right "pane", but cannot figure out how to do this. I did it yesterday, for the first time ever and loved it, but can't seem to ...
3
votes
1answer
736 views

update_terminal_cwd demystified please?

I am trying to find the documentation on what, exactly, the printf command is doing in update_terminal_cwd. If you didn't know already, the update_terminal_cwd function is defined (at least on Mac OS ...
3
votes
3answers
1k views

iTerm ZSH - Missing Right Prompt

I'm using oh-my-zsh and iTerm2. I've also enabled the zsh-vim-mode plugin from oh-my-zsh. One of the annoyances I've encountered is my right prompt (RPS1 & RPROMPT) doesn't seem to show up. I'd ...
3
votes
1answer
1k views

F9 key with BYOBU

I have installed BYOBU via Brew and all the F keys work except for the F9 key which happens to be the key used to get to the menu. I have worked around this by editing the ~/.byobu/status files ...
3
votes
1answer
65 views

Passing alt/opt key sequence over ssh to remote host with iTerm

Just learning the ropes of my new MacBook Pro. I have a linux workstation at the office that I use to host a number of tmux sessions, which represent whatever Im working on at a given time. If out ...
3
votes
1answer
193 views

Two red lines/bars in iTerm2 window and error message about session ending, what is going on here?

I've been experimenting with threading and running bits of python from iTerm in MacOS yesterday. Today I opened iTerm and two windows opened, one with thick red lines inside it. I received a Warning ...
3
votes
1answer
252 views

iTerm2 & Terminal show my Mac serial code

I had problems with colours not showing in iTerm2 for me. I tried a few fixes I found online which didn't work and now my serial number of my laptop is showing in iTerm & Terminal. Anyone know how ...
3
votes
1answer
194 views

Disable Search / Dictionary Popup Window in iTerm2

The newer versions of iTerm2 have a "feature" in which a Search dialog is displayed instead of doing a Start selection action. My intention had been to select the 14 and the following paragraph .. ...
3
votes
1answer
688 views

Changing iterm2 Terminal Color

Is there a way to bold the color of the current active terminal tab in iterm2? I do not see an option to do that on the appearance tab of preferences. I know I can change the tab style, but I still ...
3
votes
1answer
1k views

How does Sublime open file with cmd+click on its path in Terminal?

For example: $ ls -lsa 4 -rw-r--r-- 1 denis 404 Jul 16 18:36 pgadmin.log cmd+click on pgadmin.log Sublime opens pgadmin.log (if path is 'pgadmin.log:12', it opens it and sets cursor to 12th ...
3
votes
2answers
2k views

How to get Ctrl+return key binding for emacs in iTerm2 working?

I have Control+Return key bound to a function that I use very often. This works when i run emacs in x-windows. But when I run emacs in iTerm2 control+return just has the effect of line-feed (i.e as if ...
3
votes
1answer
142 views

How to avoid unselect file dialog when pressing minus sign in Midnight commander on macOS

When I try to type a minus character (e.g. open -a TextEdit) in the MC subshell, instead of minus the Unselect dialog pops up. I'm using iTerm2 and Midnight commander via Homebrew.
3
votes
2answers
627 views

Read iTerm2 last session output history

This is probably a long shot but it would be really handy if there is a solution. I am logged in on a work computer I currently cannot access. I know the output of a long running job I previously ...
3
votes
1answer
1k views

tmux jump words as with zsh

I moved from just using zsh to using zsh inside tmux. As my terminal is iTerm2 for both combinations. I have the following lines in my .zshrc to enable jumping words on a bare zsh command line using ...
3
votes
3answers
367 views

Automator service script ALWAYS launches application, disregarding conditional

I wrote a little service script to open an iTerm terminal window on an arbitrary folder on Finder. I want it to check if iTerm is running, and if it is to open the terminal session in a new tab ...
3
votes
2answers
533 views

Closing other tabs in terminal on Mac?

I am using iTerm2, but I wouldn't mind switching back to the original terminal for just this feature. I open hundreds of SSH tabs every day and often end up working after a while only working on 1 ...
3
votes
1answer
2k views

Tmux with iterm2 integration won't start when invoked with tmux -CC

I'm using iterm2 Build 1.0.0.20130302 and would like to get tmux working. I followed the instructions at: https://code.google.com/p/iterm2/wiki/TmuxIntegration Everything compiled and installed ...
3
votes
1answer
8k views

How do I get vim to work at 256 colors in iTerm?

I just got a new iMac, and installed iTerm (0.10). On my last laptop 256 color mode worked fine, but I'm having trouble getting this to work on my new Mac. I copied over all the settings, set $TERM ...
3
votes
0answers
77 views

Separate zsh histories after restart (iTerm2)

I am running iTerm2 (v 3.2.9) and zsh (v 5.7.1). I normally have 3-4 iTerm tabs opened at the same time and each tab has its own history thanks to the following settings in my .zshrc file SAVEHIST=...
3
votes
0answers
238 views

iTerm2 keeps switching desktops using dropdown

I'm using multiple iTerm2 windows on different desktops on my El Capitan and It's irritating how it keeps switching desktops when using Quake-like drop-down termina. Steps to reproduce: 1) open ...
3
votes
0answers
1k views

Iterm2 - Export a single profile's settings for distribution to others

I've been getting used to working with Iterm2 over the past few weeks. I have a very specific profile configuration requirement for a legacy business application. The configuration for the profile ...