Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
27 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
19 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
21 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
19 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
15 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
45 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
46 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
13 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
69 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
13 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
33 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
63 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
25 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
297 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
236 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
26 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; ...
1
vote
2answers
407 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
20 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
59 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
16 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
15 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
20 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
16 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
17 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
164 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
30 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
19 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
50 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
18 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
26 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
16 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 ...
1
vote
1answer
377 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
41 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
31 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
vote
1answer
113 views

How to make path prompt easier to read by color-coding each `/` (forward slash)?

I would like to get another configuration for the path, more a detail than a real request: Below an example of zsh PROMPT : In order to make reading the path easier, I would like to change ...
2
votes
2answers
134 views

In iTerm2 map the left Command key to the left Control key & map Command+Tab

In iTerm2, can I map the left ⌘ Command key to the left ^ Control key and still map the system ⌘ Command ⇨Tab to still switch to all other windows? I've use three different OS's (Ubuntu, macOS and ...
0
votes
1answer
29 views

Change iTerm2 Profile

How can I change the profile of my current iTerm2 session? If I click Profiles and select one, it opens a new session instead of changing the current one.
1
vote
0answers
37 views

iTerm2 : Adapting zshrc prompt to get the same one than with .bashrc

I switched from bash shell to zsh. After sourcing a main part of my old .bashrc to .zshrc, I am faced a problem concerning the rendering of prompt with zsh (which works with bash) : function ps1 { ...
0
votes
0answers
21 views

Message “anaconda3 Py” in Iterm2 with zsh

I recently installed Anaconda, but in my Terminal (Iterm2), this message appears on the right "anaconda3 Py". I want to remove that message, but obviously without uninstalling anaconda. Maybe the ...
0
votes
1answer
12 views

How to disable profile tab/toolbelt when opening new window in iterm?

I have been facing this problem for a quite while now. Whenever I open new window of iterm, a profile tab/section is automatically opened. Here is a screenshot. It's annoying to close it every time ...
0
votes
1answer
24 views

Iterate over an array of image sizes, and move them to a new folder

So a few years ago a asked this question, on how to find an image of specific dimensions. That script worked (and works) great for me! But now, i want to find not just one (1) dimensions but 10 ...
0
votes
0answers
39 views

Why is iTerm2 pinging faster than Terminal?

I am using ping www.google.com from Terminal and iTerm2. iTerm reports faster responses from Google. Why is that? Is there a more efficient way of understanding how my connection is doing?
0
votes
1answer
76 views

How to create a hotkey for opening a new iTerm2 window?

I typically have multiple terminal sessions across different screens. Since opening the terminal is such a frequent task, I have a hotkey bound to open -b com.googlecode.iterm2 . with Karabiner-...
2
votes
1answer
111 views

iTerm2 error notification ‘Couldn't log to 2020…’

Every time I open a new window iTerm2 says "Couldn't log to …" I restarted my Mac which is on High Sierra but the problem continues. How can I solve this problem?
1
vote
0answers
92 views

how to scroll horizontally right on iterm terminal?

I want to scroll horizontally since my window size doesn't cover all the info I need. What's the shortcut to do this? In the screenshot above, it would be useful to scroll right so I can see the ...
1
vote
1answer
58 views

How can one save iTerm2 hotkey-window settings (size/dimensions, computer monitor/display, and relative display position)?

How can one save iTerm2 hotkey-window settings (size/dimensions, computer monitor/display, and relative display position) so that the said hotkey window re-appears with the same (above) settings? I'm ...
0
votes
1answer
212 views

Why this custom Mac Keyboard Shortcut is not working?

everyone This is probably a very simple question by someone that has just started using custom keyboard shortcuts on Mac. I want to set up a shortcut for opening a terminal window in a given folder ...
0
votes
0answers
23 views

How to configure iTerm2 to not cycle/loop around/overflow while navigating in between split panes?

I want to be able to use the navigation hotkey to move around the split panes without cycling through them. For example, if I'm at the top-left pane, and I navigate left using the hotkey, I should ...
1
vote
0answers
96 views

How to open the Apple URL protocol x-man-page:// in iTerm and not Terminal (default)

Apple has some custom URLs defined and one of them is x-man-page. If you open a particular man page with it, it displays it in a nice yellow window (a provided profile for Terminal) with black text. ...

1
2 3 4 5
9