Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
23 views

Vim in Iterm2 closes after compiling Latex file

When I run !pdflatex % in Macvim, the latex file compiles and I am not exited from Macvim. In iterm2, the compilation occurs and them I am taken out of Vim back into the terminal prompt. Any ideas ...
0
votes
0answers
13 views

AMSupportURL* “is implemented in both”?

I read this thread and do not really understand the reply. I am getting the same error the first time I run iTerm2 after a reboot on a mac M1. The author of that reply said It means two symbols are ...
0
votes
0answers
25 views

How to make iTerm2 colorful?

I have been trying to get my iterm2 terminal colorful, but I am having very little success. I tried adding the following to my .bash_profile # Set CLICOLOR if you want Ansi Colors in iTerm2 export ...
0
votes
1answer
11 views

Toggling iterm2 with F12 hotkey on touchbar doesn't work

Normally I use external keyboard with my macbook pro 2018 and never had any problems with toggling iterm2, I use cmd+F12 as a hotkey. But now I'm using laptop keyboard with the touchbar that shows F1-...
0
votes
1answer
28 views

Midnight commander freezes when lynx navigation is used in a quick fashion

As a wrote in the title I use MC on Mac because I just like it and it is a very effective tool, especially with lynx-like navigation. But it gets frozen randomly when I use it basically running ...
0
votes
0answers
15 views

Cannot get iTerm profile to switch back to shell using zsh

I have a couple of profiles set up in iTerm on my Mac, for accessing different local and remote machines. The main purpose of the profiles is to change the colours so that it is immediately obvious ...
0
votes
1answer
19 views

iTerm2 highlighting pasted text

I recently switched to a new machine, and I'm noticing a behavior in iTerm2 I haven't seen before. Whenever I paste text into iTerm2, the text is highlighted: Here, I pasted "err". Why is ...
1
vote
1answer
20 views

Wrong Application Name when Asking for Privacy Permissions?

This seems like an odd one. I installed iTerm2 shortly after doing a fresh install of Big Sur on my laptop. A bit after that, I installed VMware Fusion and went on with my life. Tonight, I wanted to ...
0
votes
0answers
15 views

what is the hex code for backward-kill-line

I'd like to map ^u to backward-kill-line on iTerm2. What is the Hex Codes for this?
0
votes
1answer
23 views

What is the difference in the way PageUp/Pagedown keys are handled by Terminal.app vs iTerm2.app?

I had an SOF question about the ipython REPL handling of scrolling https://stackoverflow.com/q/65385315/1056563 Cycle through ipython “history” with one keystroke per item even when multiple lines ...
0
votes
0answers
36 views

When I switch desktops with multiple displays, why is the focus on the main display is changing to the same application on the current display?

I am experiencing a weird issue. I have one external monitor and Macbook. I have multiple desktops on both displays. If I open an application, especially iTerm, Chrome, VSCode on the external monitor, ...
2
votes
2answers
197 views

How to go to new line in iTerm2 without executing command?

Don't flag this as duplicate to answers that say append \ because I am not asking for line continuation. I want something equivalent to Command . from default terminal in ITerm2. I want to treat line ...
1
vote
2answers
88 views

Way to keep track of successful commands on command line?

Usually I just copy/paste successful actions I do on the command line into a text file. That's a bit of an error prone and cumbersome process and I sometimes forget to do it. Do you know of a way to ...
0
votes
0answers
15 views

Click on link to open a terminal in a specific directory using iTerm

I want to use OmniOutliner to attach a directory to my outline. I think that the best way to do that is to have a link which, when clicked, opens iTerm in a specified directory. Can this be done? Mark
1
vote
1answer
60 views

I'm saving debug logs for iTerm2 but why can't I find them?

I can't find the file /tmp/debuglog.txt anywhere using finder. locate debuglog.txt failed because there is no database, so I've built one using sudo launchctl load -w /System/Library/LaunchDaemons/com....
1
vote
1answer
34 views

What is the difference between these two cursors, with tmux?

When running iTerm2 / Tmux, I have this cursor: but when I hold the alt/option key, I have this cursor: what is the difference?
1
vote
1answer
28 views

How to identify plist values for iterm preferences

iTerm2 preferences are stored at ~/Library/Preferences/com.googlecode.iterm2.plist. (see also this post for details). I can print its contents using defaults read com.googlecode.iterm2.plist Is there ...
0
votes
1answer
64 views

ITerm2 Closes Immediately After Opening

My iTerm2 closes right away when I click on the icon in an attempt to open it. I have seen that this is a known issue with iTerm2, but the solutions I found involve editing preferences through the ...
0
votes
0answers
38 views

iTerm2 Send Escape Sequence for Option-Enter

I would like to use Option-Enter in tmux in order to split windows. Both my Option keys are set to "normal" mode, otherwise, I will not be able to type special characters (Norwegian keyboard ...
0
votes
0answers
35 views

Why do my arrow keys not work in irb on iterm2

The arrow keys work fine in iTerm2 in general, but break in irb. Instead of working as arrow keys, they get escaped as ^[[D, ^[[C, etc.
1
vote
1answer
84 views

How to open iterm from Finder? [duplicate]

Imagine I'm in /Users/beauthi/Documents in Finder. I want to launch commands in my default terminal, which is iterm, in that location. Is there a specific trick in the Finder app to launch iterm and ...
1
vote
2answers
63 views

Making changes to the iTerm UI permanent

I am new to the MacOS, and I have started using iTerm2, and I want to make the changes to my UI permanent, but I am unable to do so. When I "right-click" in the iTerm window and go to Edit ...
0
votes
0answers
19 views

How do I open a profile in iTerm2 in the current window?

I don't want to open the profile in a new tab, a new window, nor do I want to split horizontally or vertically-- I just want the command tied to my profile to run.
0
votes
1answer
174 views

Which is correct, iTerm or Terminal? (Option as Meta or Esc+)

Each provides the ability to change the behavior of Option: as Normal, Meta, or in iTerm only, Esc+. However, an interesting phenomenon is, in order to have Emacs-style shortcuts at the command line, ...
0
votes
0answers
15 views

iTerm2 force same window size on each hotkey window display

Is there a way to force the size of a hotkey window size on each trigger rather than on each window creation? Having a default window creation size only lasts up until when the screen's resolution ...
1
vote
1answer
37 views

How can I avoid iTerm trying to scp a file when ⌘-clicking it?

I am working with a developer setup so that I run my code in a docker container and be able to edit it locally (via volume). Local path is e.g. /path/to/my/project while inside docker container it is /...
0
votes
1answer
144 views

iTerm2, zsh and .zshhistory - how to have separate zsh history

I installed iTerm2 on Catalina 10.15.6 on a MacBook Pro bought in early 2020 and have two profiles - Default and MyUser. For MyUser, I set a custom location of /Users/john-doe/iTerm2/zsh (copy of zsh ...
0
votes
1answer
31 views

Proliferation of unknown bash processes when invoking ps

I'm having some very strange behavior in my shell that I don't even begin to understand. I apologize for being somewhat lost, but I can't seem to turn up many obvious answers in a web search. I'm ...
1
vote
3answers
955 views

Question Marks in iTerm (Font Issue?)

I recently set up my iTerm and have been really enjoying how smooth and functional it is out of the box. I installed the Prezto zsh pre-config and set up Powerlevel10k as my Prezto theme. I also use ...
0
votes
1answer
1k views

Can't read/write via `dd`: got /dev/disk2: Permission denied (to Physical device)

I can't do anything via dd with my Physical devices agreed. I can only work with partitions like disk2s1, but can not read from whole disk like disk2. Can't find where is the root of problem. Steps: ...
0
votes
0answers
37 views

MacOS Catalina - iTerm2 - Strange message when rebooting the MacBook pro

When I reboot my Macbook pro and after logging, I have a strange message on a iTerm2 terminal window that appears and that doesn't give the hand : /Applications/iTerm.app/Contents/MacOS/image_decoder; ...
2
votes
2answers
2k views

macOS Big Sur Terminal hangs and no prompt appear

I have a strange issue on my MacBook Pro (Mid-2017 15" with touch bar; MacBookPro14,3; 11.0 Beta (20A4299v)). I've just installed macOS Big Sur on an external drive and everything was alright for ...
0
votes
0answers
52 views

iTerm2 Cmd+click tries to download URL as it is a remote file

I'm using iTerm2 Build 3.3.12 on macOS Catalina (with Bash). Since I installed the Shell integration I can't Cmd+click anymore on URLs in order to browse them. Instead, iTerm2 tries to download it ...
1
vote
0answers
100 views

Launchctl setenv in Terminal.app vs iTerm

If I use launchctl setenv FOO BAR in Terminal.app, after closing and reopening the app, the variable FOO is correctly set. If I do the same thing in iTerm, nothing happens. Why?
1
vote
0answers
21 views

Autocomplete across all iTerm2 sessions and tabs

Can my tabs and sessions share the same autocomplete history? Also can this history persist between opening and closing iTerm?
0
votes
2answers
21 views

No single shortcut to go to end of file

I'm new to Mac (10.15.5) and so far figuring out shortcuts has not been a smooth journey. Usually on Windows I would use these - Home - Beginning of a line End - End of line Ctrl + Home - Beginning ...
0
votes
0answers
23 views

Is it possible to add iTerm2 shortcut for custom input?

It is common in text editors to have special line break that doesn't create new paragraph. Usually with ⌥ Option⏎ Return shortcut. I want to achieve something similar but in terminal: on ⌥ Option⏎ ...
0
votes
1answer
20 views

How to restore select files from Time Machine and fix permissions issues

I like doing things from the command line (eg copying only 24 select files by wildcard from my time machine backups) and Time Machine's extra permissions and protections catch me out every time. ...
0
votes
0answers
24 views

iterm2 how to change or toggle split orientation?

Is it possible to change from vertical splits to horizontal splits and vice versa? Something like vscode's toggle editor layout.
1
vote
1answer
342 views

iTerm2 - zsh - keep history of commands when opening a new pane

with zsh on MacOS Catalina, when I split my current window of iTerm2 by opening a new pane, I would like to be able to keep in this new pane the history of commands of previous pane (which is still ...
0
votes
1answer
47 views

How can I get .zshrc to run in its entirety every time I open zsh

Here is the entirety of my .zshrc. alias ll='ls -l' export HOME='/Users/rcorty/Dropbox' This file is at /Users/myname/.zshrc. When I start iTerm2, I check whether the home directory was reset by ...
0
votes
1answer
25 views

iTerm unresponsive as xcode attempts (and fails) compiling every startup

Very recently, iTerm has become unresponsive for me when I open new instances of it. Whenever I open a new window or tab of iTerm, Xcode seems to be attempting to recompile a slightly older version of ...
0
votes
2answers
63 views

Can't launch Finder window from terminal on Mojave

open isn't behaving as expected on Mojave. Running open /Library/ gives LSOpenURLsWithRole() failed with error -600 for the file /Library. This happens regardless of the opening location. I'm ...
0
votes
0answers
25 views

iTerm2 Supply PWD to coprocess in capture output trigger

How do you supply PWD to a coprocess script? For instance, given the below trigger: When I double click the captured output, it runs the script: ~/rerun_test.sh supplying the filename that was ...
1
vote
0answers
30 views

Select last part of a string in iTerm2 using standard shortcut

Using iTerm2, I am currently typing this command (notice the cursor at the end of addons): If my terminal would be like any other text input I use on my Mac, I could use the shortcut Alt + Shift + ...
0
votes
0answers
6 views

Arrow keys in insert mode in vim

When I'm in insert mode in vim and I use the arrow keys, it sends what seems like a letter and a carriage return. For example, pressing ↑ it sends: A It looks like A\n but I'm not sure exactly what ...
0
votes
0answers
24 views

How to send an arrow key in iTerm2

Is it possible to send an arrow key in iTerm2? I've been able to send almost any other character, by using either an escape character, such as \<C-a> or entering in the character directly, such ...
4
votes
1answer
1k views

How do I do Home and End in iterm2?

Home and End do nothing in iTerm2, nor do ⌘← and ⌘→. However, Ctrl-A and Ctrl-E do work. Can Home and End do this? Preferences->Keys_Key Bindings in iTerm2 do not offer a "Start of Line" or "End ...
1
vote
1answer
45 views

Launch terminal program from macOS app

I use Fork and I'm trying to set up a custom command that will open a file in Vim. I'm not using MacVim, so the command needs to open a terminal, preferably iTerm2. Executing /usr/local/bin/vim doesn'...
0
votes
1answer
41 views

ZSH issue with colorized prompt and double slash, i.e “//” appearing when I am into root

I am faced to a problem of appearing slash / appearing double slash into PS1 when I am located on root / . I explain more precisely, I have in .zshrc : setopt PROMPT_SUBST slash_color () { dirs | ...

1
2 3 4 5
10