Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [iterm]

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

1
vote
0answers
15 views

macOS Terminal.app can't split with Command + D

I installed zsh. When I press Command + D in iTerm2, it could split normally. But when I return to using Terminal.app, I use bash or zsh, it can't split with Command + D, it changed like the ...
15
votes
6answers
2k views

How to find all the available tools in mac terminal?

I am trying to setup a bunch of development projects in my Mac. I have to run various tools like python, ruby, scala, groovy etc. To see if a tool is available I use options like ruby --version. ...
2
votes
1answer
37 views

iTerm2: Open Windows as Tabs

Up until recently, multiple iTerm2 windows showed up as tabs for me, as if they were themselves tabs. That is, I had two tab hierarchies, one for windows (like a super tab) and one for tabs. Here is ...
1
vote
1answer
13 views

iTerm2 : Prevent lines from vim from going into scroll back

I was wondering how I can prevent iTerm2 from saving the output from a vim sessions into the scroll back history? This isn't a feature when you are editing confidential files.
1
vote
0answers
35 views

iTerm2 still opens old shell after Bash upgrade

I tried upgrading my MacOS Bash from 3.2 to the latest version as in this article. It involves installing the latest Bash with Homebrew and then setting the default shell with chsh. However, chsh ...
1
vote
0answers
26 views

iTerm2 no longer putting SSH host in tab title

I recently updated iTerm2 to 3.3.0beta1. I used to see the name of the host I SSH'd to in the tab title. Now all it says is ssh. Any idea how get the previous behavior back?
6
votes
1answer
1k views

How to find out why iTerm2 suddenly wants to access my Calendar?

Out of the blue I am prompted for this permission grant: How can I find out what is triggering this request and why? The last command I ran was du -h -d 1 in /
0
votes
1answer
90 views

iterm3 reverse minimal theme compact style

When my term updated to its latest version (Build 3.3.0beta1), it removed the titlebar from the window. Apparently iTerm's theme is now: minimal. And the default profile window type is: compact But ...
3
votes
1answer
1k views

Why is .bash_history periodically wiped?

This is the second time it's happened. I just tried grep-ing some historical commands and came up empty. a look at my bash history shows that it's practically empty. Like it's been wiped clean. I use ...
1
vote
0answers
38 views

Running a command with access to “System Events.app” granted

I am updating applications installed via Homebrew from command line. iTerm2 requires access to "System Events.app" to be correctly updated, which ends up in a process that is not fully automated and ...
4
votes
2answers
75 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 ...
0
votes
0answers
15 views

iTerm2 intermittently gets stuck on pasting old clipboard contents

As described in the title: sometimes iTerm2 does not realize that the clipboard has been updated. I have verified the problem were specific to iTerm2 by pasting the newer clipboard contents into ...
0
votes
1answer
76 views

curl not downloading pear.phar on Mac Mojave

i do try to curl -O https://pear.php.net/go-pear.phar but all i got is a log raising the time spent: % Total % Received % Xferd Average Speed Time Time Time Current ...
1
vote
0answers
18 views

How to get rid of a beep in iterm2 on `backward-word`

I'm using zsh in iterm2. I've set: bindkey "[D" backward-word for option+left to skip a word back. While it works, I also get a terminal beep every time I do it and I'm not sure where is it coming ...
0
votes
0answers
18 views

keyboard shortcuts not working in the terminal anymore

When I try exit programs in the terminal using cmd + c nothing happens. Furthermore when I am using tmux no key commands work either. For example, if I try to split the screen using cmd b + % all that ...
1
vote
1answer
25 views

How can I get iTerm out of fullscreen mode?

I must have hit some keystrokes which got me stuck in full screen mode and there are no resize icons when you over mouse at top of screen even though the task bar shows up. How do I get out of full ...
0
votes
1answer
192 views

iTerm2 how to get autocomplete through tab key

In my terminal I can press tab key to autocomplete dir names etc but I can't do this in iTerm2. Is there any way to do that in iterm2? I'm using bash. I know cmd ; shows autocomplete but I'd like to ...
0
votes
0answers
38 views

How can I stop iTerm2 changing color scheme after profile is loaded?

Whenever I open iTerm2 the color scheme changes to solarized-dark. It doesn't matter what changes I make to the profile, this alway happens. I can't seem to find where this change is happening in the ...
0
votes
1answer
28 views

How to render a specific character as transparent in terminal

I'm looking for a way of rendering a single character / escape sequence as transparent in iTerm2 or, if there is one, any other terminal emulator. With transparent I mean that it should show the ...
0
votes
0answers
20 views

Simple AppleScript exporting to Application does not work

I have created a simple script that takes some parameters as input, opens a new iTerm2 window and executes them. The script is fairly simple: on run argv set argList to {} repeat with arg ...
0
votes
1answer
96 views

Terminal broken.

I am having an issue and I have no clue what I should be searching to fix it. Not experienced enough. I have zsh and probably other things I installed many years ago while making the terminal more my ...
3
votes
1answer
84 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
2answers
353 views

Removing a file from a protected folder in Mojave

Background I am trying to remove Sound Flower from my Mac. I found some relative files in 3 places. I removed 2 of them but the third one is in a folder that will not allow me to remove it. ...
0
votes
1answer
351 views

How to reset iTerm2 Window/Tab Title when disconnecting from remote host? [duplicate]

I have my bash_profile on my Mac and the remote computers I connect to setup to automatically put the hostname in the window's (or tab's) title area. A bash shell on my local machine A remote host ...
1
vote
0answers
12 views

iTerm How to auto focus REPL?

I'm running on the latest version of iTerm and I'm using a vim plugin (https://github.com/noahfrederick/vim-laravel) that fires up a REPL with the command: :Console However, I have to focus the new ...
4
votes
1answer
7k views

iTerm2 - Accessibility and Full Disk Access

Just installed iTerm2 and it asked me change some settings in Security & Privacy of macOS. At the moment I gave "Full Disk Access". Under "Accessibility" I see iTerm2 listed but without the ...
0
votes
0answers
24 views

iterm2 : using `clear` to demarcate different portions of screen in terminal scrollback

I run programs that generate a lot of output. In Terminal.app, if I typed clear twice, it would enter a terminal's height of white space in the scroll back output. This makes it easier look through ...
1
vote
1answer
143 views

How to open multiple iTerm2 tab with admin privilege

So I have an executable program in my /usr/local/bin/ called myApp. I need to run multiple myApp processes in new iTerm2 tabs with sudo. The file structure is like this: --myFolder ----v1 ----v2 ---...
1
vote
1answer
191 views

How do you change colour scheme between *panes* inside iTerm2 + oh-my-zsh?

I have seen a lot of solutions that allow changing of tab colour upon remote accessing into a server (see for example: https://gist.github.com/wadey/1140259 and many more). What I want is to change ...
3
votes
0answers
230 views

iTerm2 shortcut for deleting selected

I've set some shortcuts in iTerm2, but I cannot find how to set MS Windows style cut functionality. I want to select some text (which I am able to) and then cut/past it somewhere else. I want also to ...
1
vote
0answers
224 views

Difference in font rendering between iTerm and Terminal.app

I've just installed iTerm 3.2.0. I'm using default settings and noticed that fonts look slightly different, compared to Terminal.app. A bit thinner, and glyph heights (or maybe distances between lines)...
1
vote
0answers
43 views

iTerm2 - Split vertically with same command history

Is it possible to have same history of commands when I split window vertically in iTerm2 with Command + D as in current window? For example history command shows different list of commands, looks ...
2
votes
1answer
1k views

iTerm2 - Split vertically with current profile with same working directory

When splitting vertically with current profile by using the keyboard shortcut, Command + D, is it possible for the new iTerm window to have the same current working directory as the current one? By ...
3
votes
2answers
69 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
1answer
82 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.
1
vote
0answers
77 views

Iterm2 Window goes to back when switching desktops

When a non-fullscreen iterm window is opened and the desktop is switched, the iterm window goes to the back, behind any open windows in the screen. Is there a way to keep the iterm window on top when ...
1
vote
0answers
196 views

Terminal command and Broken Pipe

I use the iTerm terminal a lot and occasionally I'll run a script with an "exit" in it. When that statement executes I get 2 orange horizontal lines drawn the width of my iTerm window with the message ...
1
vote
1answer
69 views

macOS terminal: quick way to edit command options after bash/zsh autocomplete

The issue I use autocomplete from history a lot whether that's with up-arrow or typing the first few letters and completing the whole command including all arguments (options and others) with right-...
2
votes
1answer
210 views

iTerm2: Option + Number (0..9) key not working

I have a German keyboard layout and need e.g. Option+7 to write a pipe (|). Option+Letter (Letter=a..z) works fine, but Option+Number (Number=0..9) is not producing anything. However, if I press ...
0
votes
1answer
667 views

Bash history not initially remembered with iterm2

I've got an annoying problem with iterm2 not remembering my history when I close out a terminal window. I'm not sure if it might be my .bash_profile config or what. Here is what is happening: 1) ...
2
votes
1answer
413 views

iTerm Double Click Text Selection

I recently installed iTerm on both my Mac Pro & MacBook Pro and the text selection behavior is different on both the machines. Consider the following line in terminal: /Users/user/basic/...
1
vote
0answers
85 views

Make iTerm2 read profile from file, from the CLI?

I want to make iTerm have these values set: - Load preferences from a custom folder or URL - Save changes to folder when iTerm quits And I want to set them from a CLI command (no GUI, no clicks). ...
0
votes
0answers
70 views

Terminal and iTerm appear to be partially opening in zsh

I recently installed Julia on my iMac running High Sierra. Julia seems to want to run in the Z-shell whereas I normally use bash. I haven't run Julia today but my Term2 windows are screwed up since ...
1
vote
1answer
244 views

Key binding in iTerm2

I am trying to bind a shortcut to perform cut command in iTerm2. Obviously, cut is bound to Cmd + x, but I would also like it to be bound to Ctrl + w. I did this easily for paste by going to iTerm2 → ...
0
votes
1answer
55 views

Window opens but immediately disappears. This happens with multiple apps

Recently, I've run into problems with Notes, Mail, Messages, and iTerm. All of these are in my dock along with several other apps. Normally if I click on one of these it opens and works fine. ...
1
vote
0answers
72 views

iterm2 first tab transparency differs from default

I set up iTerm2 colours/backgrounds, however the first tab is always "lighter" (i.e. more transparent) than all the other tabs. When I set transparency in the profiles, I can see every tab except the ...
2
votes
0answers
115 views

How to stop iTerm2 closing tabs on error? [duplicate]

iTerm2 always closes the tab/window on error. By contrast, Terminal keeps it open so you can view the error. How can I prevent iTerm2 from automatically closing the tab/window on error?
0
votes
0answers
38 views

Shift+tab no longer works on terminal

I have a 2017 MacBook Pro Retina 13", running the latest version of macOS. I use Iterm + zhsrc as terminal configuration but a few weeks ago my shortcut Alt + Tab stopped working. If I'm executing ...
0
votes
1answer
282 views

Windows won't open from Mac Dock

I use iTerm a lot and keep the app in the dock. When I first start iTerm, it brings up a terminal window. If I minimize its window I expect to be able to click on iTerm in dock to bring the iTerm ...
4
votes
3answers
1k 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 ...