Questions tagged [iterm2]

iTerm2 is an open source Terminal replacement for OS X

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

bindkey to Alt + Shift + p has no effect

Capital p with Alt and Shift no longer seem to register as keystroes on my Mac OS with iTerm 2 (or Terminal). Therefore this key has no effect: bindkey -s "^[P" "echo 'I cannot trigger ...
Sridhar Sarnobat's user avatar
0 votes
0 answers
25 views

Terminal continues to open chrome, even though firefox is default browser

I recently updated my default browser from Chrome to Firefox. I am working on a MacBook Pro. If I run a local app(ex: localhost:8000), such as a react app, iTerm2 will open Chrome, instead of Firefox. ...
Jamie's user avatar
  • 101
0 votes
1 answer
35 views

Streaming outputs to another window without running the same commands again on iterm2

First of all, I think every command running consumes some resources. So if I'd like to have another window displaying the same output of the same commands being run on another session without running ...
11100100's user avatar
1 vote
0 answers
143 views

Easiest way to switch NeoVim Control key shortcuts to command key

tl;dr Searching for a way to replace all shortcuts in neovim that use the control key with the command key on Mac -- I just got started in using neovim as my main code editor However I find hitting ...
unnamed-dev's user avatar
0 votes
1 answer
80 views

how to change the main color of iterm2

I was trying to change the main color of iterm2 using the foreground color, but I discovered that it only affects some text but not all text: same goes if I launch mysql on command line, it takes the ...
abbood's user avatar
  • 1,174
0 votes
1 answer
13 views

How do I send the 'setMark' escape code in Windows Terminal or iTerm2?

Windows Terminal now supports setMark which originally came from iTerm2. How do I add a mark (non interactively, ie so I can use this in my $PS1)? The docs have a screenshot of the relevant text ...
mikemaccana's user avatar
0 votes
0 answers
10 views

How to get saved window arrangement everytime I create a new tab or new window in MacOS Iterm2

I created a window arrangement named Zoomed. As the name indicates, the window arrangement is zoomed in compared to the default one. Now i made a settings change to open Zoomed one on startup. I don't ...
vishnu vardhan's user avatar
0 votes
0 answers
85 views

Neovim cannot find various executables when launched through an applescript

I am using MacOS Monterey and am attempting to create a means through which I can double-click a program file in Finder and have it open in neovim. To do this, I need to launch nvim through an ...
Catyre's user avatar
  • 11
1 vote
0 answers
29 views

Applescript cannot find file that exists

Big picture, I am trying to create an applescript that allows me to open files in neovim from Finder. Though I have found several resources for doing this, none work exactly as-is, so I have to do ...
Catyre's user avatar
  • 11
0 votes
1 answer
44 views

How do I move panes in iTerm2 when the pane title bar is disabled?

I find pane title bars visually unnecessary. But they seem to be the only way to move panes around? Is there another way to move them? I'd rather have them disabled.
pixelearth's user avatar
0 votes
0 answers
127 views

Automatically reconnecting to SSH with iTerm2 and tmux integration

I am SSHing into a remote server with tmux using iTerm's tmux integration as so: ssh $myhost -t "tmux -CC a -t main || tmux -CC new -A -s main" However, when I walk away from my mac for 30 ...
Daniel's user avatar
  • 101
0 votes
0 answers
29 views

Why do my settings in iTerm2's Bash shell not translate into Tmux sessions?

I installed Bash via Homebrew and when I type in which bash I get /opt/homebrew/bin/bash. I also changed the default shell from Z to Bash as well and made custom color configurations. When I create a ...
Sean's user avatar
  • 113
0 votes
0 answers
11 views

Getting Meta + Click to work in tmux

I am using bash in tmux in iTerm2 on MacOS. When I use a regular iTerm2 session, I can do ⌥ + Left Click to jump to the clicked position (emulating multiple arrow key presses). However, within tmux ...
Adam Millerchip's user avatar
0 votes
1 answer
61 views

MacOS doesn't update custom Services hotkeys (iTerm2 specifically) after editing them in System Preferences

I'm on OSX Ventura 13.1. I've added a hotkey to open iTerm2 in selected folder, but the new hotkey doesn't appear in Finder menu and doesn't work. How do I synchronise what's actually in Finder and ...
Lyosha's user avatar
  • 11
0 votes
0 answers
49 views

iTerm2: Is it possible to save different margin settings when in full-screen mode?

There is a Side margins and Top & bottom margins settings available in Preferences -> Appearance -> Panes but it doesn't seem to be available in Profiles to any setting specific to Full ...
juil's user avatar
  • 477
0 votes
0 answers
24 views

tmux windows in iTerm2 keep on snapping to 54x31 characters

I am running iTerm2 v3.4.18, connecting to tmux 3.3a on CentOS 7.9. I regularly open new windows in my session using tmux new-window (usually to run vim in it). Frequently (I think more frequently ...
Marcin K's user avatar
  • 146
0 votes
0 answers
448 views

How do I get mouse scroll in less to work in iTerm2 like it does in Terminal?

On macOS Ventura, on a MacBook Air, with a fresh user account and default settings, in Terminal.app, I can run man less and then use my trackpad to scroll down the manpage -- equivalent to hitting j ...
NReilingh's user avatar
  • 5,709
1 vote
0 answers
91 views

Junk characters shows up when ssh to a server and execute tmux

When I execute tmux on iTerm on MacOS, it works fine. When I execute tmux on WSL on my Windows PC, it works fine. However, when I ssh into my PC from my Macbook, execute WSL and execute tmux, weird ...
SH Chen's user avatar
  • 11
0 votes
0 answers
174 views

Spacing of "ls" output in macOS Terminal and iTerm2

I'm looking for a way to modify the output spacing behavior of 'ls' Right now it seems the logic is to measure the spacing between the beginnings of each word and set that to be the length of the ...
Pierre Baudin's user avatar
0 votes
3 answers
696 views

How to open a new vscode tab but not a new vscode window when using "code ." in terminal?

As the title says, I input "code ." in my iterm2 terminal to open a folder in my vscode, and want it be opened in my current vscode window(in other words, in a new tab), but not create a new ...
peilin's user avatar
  • 1
1 vote
1 answer
110 views

Is there a way to get zsh to "forget" the casing of a filepath for tab completion?

zsh somehow "learned" imporper casing of a directory which contains code. Now whenever I tab complete, it always uses the invalid case. I'm on OSX so the filesystem is case-insensitive. ...
Chance's user avatar
  • 229
0 votes
0 answers
26 views

Convert text copied with Control Sequences from iTerm?

iTerm has an option Edit → Copy with Control Sequences that results in clipboard content like [If you specify [0;4msection[0m, [0;1mman[0m only looks in that section How can I turn that to html with ...
cachius's user avatar
  • 153
0 votes
0 answers
47 views

iterm2 timestamp is covering the text on screen

Is there any option to not cover the text on screen? Notice the file yarn.lock is being partially covered.
hackerl33t's user avatar
1 vote
0 answers
71 views

Switching to iTerm window does not have cursor active

I have an iTerm2 running on fullscreen mode, but whenever I switch to it either by using ⌘ + tab or by swiping between windows, the cursor is not active and it requires clicking on the window to make ...
Sinstein's user avatar
  • 317
0 votes
0 answers
131 views

Instead of automatically centering the background image in iterm2 is there a setting that allows it to align right, scale to fill

I'm using this awesome plugin that uses osascript to automatically change iterm2's background. However, most of the pokemon are found at the lower right or right part of the background image. So ...
Richard Domingo's user avatar
-1 votes
1 answer
278 views

Iterm2 fully clear scrollback within ssh

I am sshing into a server from my mac on Iterm2. The commands that I run on the server produce lengthy outputs that I want to clear the scrollback before running each. So, I decided to use clear ...
Bat's user avatar
  • 129
0 votes
1 answer
208 views

Why can't I scroll or use ctrl-a/ctrl-e when using screen?

I use iTerm2 and I realized that when I'm using screen: ssh -t [username]@[domain].edu 'screen -DR' I noticed the following vagaries: I can't use my mouse to scroll up and down in an iTerm2 window I ...
O.rka's user avatar
  • 275
0 votes
2 answers
60 views

How to write Iterm2 Scripts with single quotation marks

I'm trying to write a script in Iterm2 This should set a title on the current Tab await session.async_send_text('export PROMPT_COMMAND='echo -ne "\033]0;TAB TITLE\007"'\n') But I'm getting ...
Dids's user avatar
  • 1
0 votes
0 answers
23 views

Disable dyld logs on Mac

Due to some configuration which I can't remember, I am getting a verbose logs of type: dyld[5165]: <DEA9AE37-F320-3837-8475-582A62F95E0A> /System/Library/Frameworks/Security.framework/Versions/A/...
Coder's user avatar
  • 456
1 vote
0 answers
73 views

Long boot time of a new window in iterm2 on Macbook Pro M1 Pro

I have been using iterm for a few years. I have recently switched to a new macbook M1 Pro and had to reinstall everything. I use zsh with powerlevek10k however when I open a new terminal in iterm it ...
Patryk Petryszen's user avatar
0 votes
0 answers
167 views

change bell sound in iTerm2

I found several answers on how to silence the bell in iTerm2 or add visual alerts to replace it. I do find the audio bell useful, but I'm starting to hate the default sound. I only want to change its ...
Salomanuel's user avatar
0 votes
0 answers
371 views

iterm2 not restoring remote SSH session over VPN

Working with macOS Monterey, I am not sure if I understand the session restore feature of iterm2 I have lot of SSH sessions to remote VMs over VPN. I put the mac to sleep and when I resume, I thought ...
mittal's user avatar
  • 143
1 vote
1 answer
596 views

How to re-map Iterm2 Ctrl+L and Ctrl+D to Cmd+L and Cmd+D

Migrating from Ubuntu to Mac, my muscle memory is to use Ctrl+L and Ctrl+D to clear screen and exit shell for bash Using iTerm2, I repeatedly press Cmd+L and Cmd+D which either doesn't have any effect ...
mittal's user avatar
  • 143
0 votes
0 answers
97 views

iTerm2 - How to set "Pin hotkey window" in json profile

I am using iTerm2's dynamic profile and versioning a profile.json to set my preferencies automatically. I am configuring hotkey configs in profile.json and tried all the possibilities to set "Pin ...
rmakoto's user avatar
1 vote
0 answers
264 views

How to change the font color in the title of iTerm 2?

Does anyone know what option should I put in .zshrc to change the font color in the title of iTerm from grey to white? I spent 24h and still couldn't find the right option because there are a lot of ...
Chris Caro's user avatar
0 votes
0 answers
1k views

Git colors not displaying in terminal

Text in both the default terminal and iTerm2 are plain white when running git commands and I want it to be properly colorized. I've reviewed this question and this question and verified the following: ...
Will Custode's user avatar
1 vote
1 answer
370 views

Is it possible to set the default iTerm profile using CLI?

I'm trying to write a MacOS provisioning script for iTerm2 which will (1) load in a dynamic profile and (2) set it to use as the default profile. Loading the profile is just a matter of putting it in ...
slifty's user avatar
  • 1,569
0 votes
1 answer
446 views

iTerm2 clear screen should not delete output of running command

When I used command + k the output of the actual running command was not cleared. Now with my new MacBook I don't know how to set this feature again. Has anyone an idea?
Ben Keil's user avatar
  • 101
2 votes
1 answer
507 views

Is it possible to set separate fish color configurations for light and dark system theme?

I use a terminal (Iterm2 Beta) that allows you to set a separate theme for light and dark mode. This is useful for changing the background color of the terminal, and the contrast of the various preset ...
Cypress's user avatar
  • 121
29 votes
2 answers
14k views

How do I disable the beep/bell sound in iTerm2 in macbook?

The shell in macbook makes annoying beep/bell/boop sounds. For the OEM terminal, this answer works on disabling this annoying sounds: https://stackoverflow.com/questions/19166539/i-want-to-disable-...
rrlamichhane's user avatar
3 votes
0 answers
2k views

Why running iTerm2 the first time installs pip3?

When iTerm2 is run for the first time on a Mac, it starts installing pip3. I am trying to understand why. In my case I was on a slow network and the install would have take 3 hours, so I stopped the ...
Naresh's user avatar
  • 209
0 votes
2 answers
503 views

Can't open files in Sublime Text 4 by clicking on paths in iTerm2 after upgrade

I just upgraded Sublime Text 3 to Sublime Text 4. (and love it!) Now, I can no longer click on filepaths in iTerm2 and have them open in Sublime. I didn't notice for a few days, so I didn't ...
David Hempy's user avatar
2 votes
1 answer
861 views

How to map Command key to Control key when using iTerm

I already mapped "Caps Lock" key to "Command" key using System Prefrences of macOS, as I use "Command" key frequently when using most application. When using iTerm2, I ...
aruku7230's user avatar
  • 153
0 votes
1 answer
363 views

With PowerShell set iTerm2 tab title

I'm using PowerShell as my shell with iTerm2 on macOS. I know it's possible on bash and zsh but running the recommended solution doesn't work in powershell, because the ANSI escape doesn't work: PS ~&...
Carl Walsh's user avatar
0 votes
0 answers
411 views

Cannot open new tabs or windows in iTerm2 after upgrading to Bug Sur

After upgrading to Big Sur (11.2), I can no longer open new tabs (Command+T) or windows (Command+N). iTerm2 flickers, but nothing happens. I also cannot split. I can still duplicate an existing tab ...
dimitriy's user avatar
  • 101
1 vote
1 answer
60 views

Add Additional Content to Paste

(I'm using iTerm2 on MacOS, also have a Debian Linux machine) Does anyone know of a way to paste content that would include some boilerplate text around whatever the actual contents of clipboard is? ...
Steven's user avatar
  • 111
0 votes
0 answers
212 views

Why would iTerm2 need to record the computer's screen?

I finally installed iTerm2 on my Mac to improve my efficiency working in the terminal. Right out of the box it's been great. I got a popup saying "iTerm would like to record this computer's ...
jtlindsey's user avatar
  • 382
2 votes
2 answers
6k views

"No such file or directory: ~/.oh-my-zsh/oh-my-zsh.sh" even though file exists

I was trying to transfer my terminal setup (iTerm2, zsh, oh-my-zsh, omz themes) from an old MacBook to a new one. .zshrc real file is in Dropbox shared between the two laptops, and in each laptop ...
RomanKousta's user avatar
0 votes
1 answer
1k views

iTerm2 + oh-my-bash: iTerm2 shell-integration not working

I cannot get iTerm2's shell integration work with oh-my-bash. I already tried the suggestions in the existing posts but without luck. My configuration looks as follow: iTerm2 profile General -> ...
Patrick's user avatar
  • 133
3 votes
1 answer
2k views

Garbage characters are printed on mouse scrolling on iTerm2

Sometimes whenever I use my mouse to scroll on iTerm2 the scrolling does not work, instead printing a lot of garbage characters on the screen. This happens very inconsistently. Sometimes it happens ...
Blaszard's user avatar
  • 455

1
2 3 4 5
8