Skip to main content

Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
2 votes
0 answers
12 views

Blue border appears when i click iterm2 [duplicate]

I'm using mac m3 pro and iterm2 when i click specific command it shows blue border around it. Tried disable term integrations Removes keyboard full control access
ByamB4's user avatar
  • 21
3 votes
1 answer
130 views

iTerm: remove box around commands

I recently updated iTerm and played a bit with its settings and some other CLI tools. The end result is that iTerm decorates each command with a "hot box" that consents to select the command ...
Lord of the Goo's user avatar
1 vote
2 answers
52 views

How to create a new iTerm2 with a keystroke and bring just this window to front

I've searched for quite a while now, I talked to numerous artificial intelligences, real intelligences and I tried many things including apple script and iTerms python API. But it seems impossible to ...
Daniel's user avatar
  • 13
2 votes
0 answers
36 views

I think my cat stepped on my keyboard and activated modes in iTerm that I do not want [duplicate]

Suddenly, when I execute a command that fills the buffer with content greater than the height of the screen, I am seeing a bar at the top of the screen showing the command that was run. How do I turn ...
patrick's user avatar
  • 435
0 votes
0 answers
23 views

How to prevent terminal windows from resizing after disconnecting external monitor?

My Terminal windows are 80x24. I usually use my MacBook in clamshell mode connected to my studio display. When I disconnect my Mac to work on the built-in display the windows get resized to 84x24. So ...
occamsrazor's user avatar
1 vote
2 answers
62 views

Can not set iTerm2 tab title

I want to configure my iTerm2 so that it shows on the title of each tab (not the window title) my current working directory. From the iTerm2 docs, I concluded that I can do this under Preferences ->...
user1934428's user avatar
1 vote
1 answer
29 views

`open` launches certain apps and certain files in background WITHOUT -g option [duplicate]

I recently started getting a strange issue on one of my Macbooks running Mac OS 14.4.1 (23E224) (but not on my other macbook). I can't figure out a pattern or debug this. Can anyone suggest what might ...
Sridhar Sarnobat's user avatar
0 votes
0 answers
17 views

How to use dark background support with lesspipe?

I got lesspipe installed and enabled with export LESSOPEN=|/opt/homebrew/bin/lesspipe.sh %s and it works well. The problem I'm facing is that my iTerm2 has a dark background, and I don't see a way to ...
Capt. Crunch's user avatar
0 votes
0 answers
17 views

iTerm Preferences Access without Menu

My menubar icon, menu and dock icon have all been removed. How can I access general Preferences? I can only reach the Session Settings.
Jimmy Dillies's user avatar
0 votes
1 answer
74 views

Oh My Zsh + iterm2 - Wrong characters showing

I'm using the iterm2 with omz - version "master (130002a)". From the last update versions, it's started to show strange characters. I've already tried to set different fonts, etc., and also ...
ldpereira's user avatar
1 vote
1 answer
45 views

iterm2 profile environment

Iterm2 profiles have the general option to specify a command to run in the profile, such as ssh. What environment does this command run in? It doesn't seem to be the environment of the default shell....
Evan Fishbein's user avatar
0 votes
0 answers
48 views

How to map the macOS Clear key to NumLock with iTerm2?

I tried, but failed, mapping macOS Clear key to Numlock functionality in latest iTerm2 (Build 3.4.23) on macOS Sonoma. I did not see any relevant setting in iTerm2 Preference dialogs: iTerm2 ...
PRouleau's user avatar
  • 185
0 votes
0 answers
79 views

Use iterm2 to display Chinese/Utf8

How to make iterm2 to properly display Chinese/Utf8? Say I want to execute these commands under iterm2: touch Hello世界.txt touch Hello老师我想你.mp3 touch Hello❤️🌹🎉.txt and this is what I'm getting now: ...
xpt's user avatar
  • 405
0 votes
1 answer
51 views

Can't open multiple Finder windows from terminal

In iTerm running bash I run: open -a 'Finder' that correctly open Finder. Actually a window already existed so it just brings up that window. With this command I want to open another window even if ...
Leonardo's user avatar
  • 251
1 vote
2 answers
87 views

My terminal applications start bash, but no init files are getting sourced

This problem suddenly appeared out of nowhere and shows in both Terminal and iTerm2. When I start the apps, usually they would run my selected shell, whose path is configured as /opt/homebrew/bin/bash....
oarfish's user avatar
  • 1,992
1 vote
1 answer
203 views

iTerm always asks for user login before loading the shell

I'm using macOS on Sonoma, and for as long as I remember, iTerm2 prompts me to log in with user and password each time before it loads the shell. On restart, it requires the user login again. The same ...
Kamil's user avatar
  • 21
1 vote
1 answer
204 views

iterm2 to honor /etc/paths with bash [duplicate]

I use Bash as my preferred shell, but the PATH values are different in my iterm2 and my Terminal (which honors my /etc/paths). How to have iterm2 to honor /etc/paths with the bash shell? More details: ...
xpt's user avatar
  • 405
1 vote
0 answers
64 views

Hold key and select accented characters (accented character popup) does not work in Terminal

When I'm in an application such as Firefox, Textedit, BBEdit, Pages etc. - virtually any application which provides something like a text entry field -, I find the following feature at work: When I ...
user1934428's user avatar
0 votes
1 answer
115 views

How to select/copy text in iterm with the mouse while running the "less" command?

In iterm, while running the less command, I'm unable to select text to copy. The mouse pointer changes from a crosshair to a circle in the middle, and I cannot click or drag text to be highlighted ...
Rob Bednark's user avatar
0 votes
1 answer
182 views

Can't cd in my Google Drive from MacOS with terminal or iTerm2

There is a perfect question for this but I can't comment due to reputation. I'm using MacOS Sonoma 14.1.1. If I list my home, I can see: lrwx------ 1 [myuser] staff 88 Oct 11 2021 Google ...
flower42's user avatar
2 votes
1 answer
55 views

iterm2: Multiple simultaneous finds

Is there a way to "find" multiple keywords at the same time? Maybe like "keyword1"|"keyword2"
subtleseeker's user avatar
0 votes
1 answer
57 views

How to Enable iTerm Profile Shortcut Key cmd-ctrl-d key by Disabling Dictionary Lookup in macOS for iTerm?

I've been trying to set up a specific shortcut key (cmd-control-d) in iTerm to trigger a profile action. However, this shortcut conflicts with macOS's default dictionary lookup feature. I'm looking ...
ylluminate's user avatar
  • 5,451
0 votes
1 answer
53 views

iTerm2 Cannot open more than 6 windows

It seems there is some sort of arbitrary limit in place for the number of iTerm2 windows I can have open on my Mac at one time. I can open up to 6 instances normally, but the 7th instance always ...
ExecutionByFork's user avatar
0 votes
0 answers
74 views

zsh:killed command grep -q -Fx "$zcompdump_revision" "$ZSH_COMPDUMP" 2> /dev/null

This issue started occurring randomly yesterday and I cannot figure this out. Every time I launch zsh, I get the error mentioned below: zsh: killed command grep -q -Fx "$zcompdump_revision&...
arximughal's user avatar
0 votes
0 answers
443 views

iterm2 command history

I like the iterm2 command history which can be triggered by command+shift+;. However, I observation is it does not have the whole history that I can get from the history command. For example, I ...
Bomin's user avatar
  • 101
0 votes
0 answers
76 views

iTerm2 quake terminal focus lingering after pressing keyboard shortcut to toggle off

My workflow is working with one Quake-style iTerm2 terminal and more often than not works besides Chrome, googling, and whatnot. So my Quake-style terminal would be floating over Google Chrome and ...
asiraj's user avatar
  • 1
0 votes
0 answers
48 views

Cmd-clicking on the names of sh/md files in iTerm2 opens them in the browser (non-deterministically)

I am using macOS Sonoma 14.1.2 with iTerm2. I often search for files in the terminal, which then I would like to open by Cmd+clicking on their name. This should open them in the default text editor. ...
Gabor Szarnyas's user avatar
4 votes
1 answer
489 views

Why does iTerm no longer source ~/.bash_profile, but Mac Terminal does?

This must be something very simple, but I can't figure it out. Until recently iTerm always properly sourced .bash_profile which has: Sellotape:~ mnewman$ cat .bash_profile ## .bash_profile - Make sure ...
Buadhai's user avatar
  • 499
2 votes
1 answer
307 views

How do I make the 'say -v PersonalVoice' command save output to a file?

Thanks to this answer, I was able to grant permission to the Terminal and iTerm2 apps to use a Personal Voice with the 'say' command; e.g. say -v MyVoice "Hello, world!" The say command has ...
Chap's user avatar
  • 1,254
1 vote
1 answer
415 views

Why do I get "operation not permitted" when I try to `ls` the content of Desktop on Mac OS?

I cannot list files in the Desktop folder using the terminal: Desktop % ls -l total 0 ls: .: Operation not permitted I have no problems accessing the Desktop folder or its subfolders with the Finder ...
Marcello Romani's user avatar
0 votes
0 answers
115 views

Using iTerm2 how can I get rid of the XXXXXXXX if the terminal has too many lines in them?

My terminal has 475 lines in them and I can't scroll back to the first lines because it displays: XXXXXX like this: ...
Boti's user avatar
  • 349
1 vote
1 answer
347 views

How to make iTerm automatically hide on focus loss in drop down terminal mode?

Following these instructions you can make iTerm act as a drop down terminal that shows and hides with a hotkey combination. The issue with this for me is that if I how iTerm and then click some other ...
EmilioAK's user avatar
0 votes
1 answer
111 views

How to execute zsh script at logon which output will be visible in the terminal window?

My default command line app is iTerm (version?) on macOS (version?). I run my script at logon, (System Settings -> Login Items -> Open at Login + myStartScript.zsh) but the script output is not ...
user1146081's user avatar
2 votes
2 answers
186 views

Why is iTerm2 creating resource forks all of a sudden?

I have an ExFAT drive which carries my works, including codes that I'll be using between Mac and Windows. I've always used TUI GNU Emacs on this drive to ensure no resource fork is accidentally ...
DannyNiu's user avatar
  • 203
0 votes
1 answer
65 views

`tput setaf` inconsistency + fail (Ventura, Sonoma)

I'm attempting to customise my bash prompt, so that I get this: i.e. user-text is in bold, but stdout is not. It was working, but after upgrading my mac it's glitching. Machine A: MacBook Pro 2017 ...
P i's user avatar
  • 1,785
1 vote
1 answer
216 views

iTerm2, nano and mouse

I'm using the nano editor inside iTerm2. I have configured various profiles for iTerm2. In my .nanorc, I have configured set mouse to get at least some rudimentary mouse support (since nano works ...
user1934428's user avatar
1 vote
1 answer
2k views

Is there a way to jump within a word using option with arrow keys in iterm2

What is the issue? I have been using the ⌥ + → & ⌥ + ← shortcuts to navigate between words, along with ⌘ + → & ⌘ + ← shortcuts to navigate to the end / beginning of the line in iTerm2. It ...
Kiran's user avatar
  • 123
0 votes
1 answer
197 views

iTerm resize screen problem

I'm encountering an issue where the iTerm screen becomes misconfigured when my MacBook Air M2 changes the monitor or goes into sleep mode. To resolve this, I have to close the session and restart it. ...
Diego Macario's user avatar
0 votes
0 answers
81 views

Launch New Bash Shell And Run Commands

I am attempting to launch a new shell and run a command in the new shell, and then leave the shell running interactively. I attempted the process over here [ (bash --rcfile <(echo '. ~/.bashrc; ...
Justin Goldberg's user avatar
0 votes
0 answers
232 views

Custom shortcut ^ ⌘ → to switch between Spaces doesn't work from iTerm2

I bound ^+⌘+→ and ^+⌘+← as my custom shortcuts to move between Spaces (Move right a space and Move left a space respectively) in System settings > Keyboard > Keyboard Shortcuts. These shortcuts ...
gccallie's user avatar
0 votes
0 answers
79 views

How to set iTerm2 shortcut to be "dumb" selection?

I'm mostly happy with the way double-click selection works. There are times, though, when I would like to perform a selection that's more "dumb" (eg select based on whitespace delimiters ...
Noel Yap's user avatar
  • 161
2 votes
1 answer
722 views

Mimic Terminal.app behavior in iTerm2 for option-arrow keys (left and right)

This is probably related to this question: How do I do Home and End in iterm2? but fiddling with the iTerm2 key mappings (both general and per-profile) to un-map option plus the left and right arrow ...
Pointy's user avatar
  • 357
0 votes
0 answers
46 views

How to search only within current page in iTerm2?

Oftentimes, in iTerm2, I'm only interested searching current page (and don't want the cursor to jump to way back in the screen history). Is there a way to achieve that? Thanks. The default (Cmd + F) ...
ssppjj's user avatar
  • 223
1 vote
0 answers
172 views

After upgrading to macOS Ventura, the tilde, pipe symbols and on Firefox fn+Opt+left-arrow) not working

I have upgraded my MacBook Pro 19 Intel to macOS Ventura. Now, I have multiple issues with shortcuts and special symbols: The tilde symbol doesn't display anymore on iTerm2 3.4.19: when I type Opt+N, ...
guizmo133's user avatar
0 votes
1 answer
458 views

Setting different `PATH` variable for different profiles in iTerm2

I have the default PATH variable as set in the .zshrc file. I am looking for an elegant and simple way to add more directories to the PATH per different profiles in iTerm2. What would be the best way ...
GeorgeIrwin's user avatar
4 votes
1 answer
308 views

Launch Screenshot.app from terminal

I've tried googling around for this, but search results keep littering things like "screenshot save location" and other junk. I am running MacOS Monterery v12.6 (intel chip). What I want is ...
ExecutionByFork's user avatar
0 votes
0 answers
45 views

Executing a script via key binding?

I am trying to create a key binding that will execute a run command instead of "just" inserting the text. I have set up a Sequence: Next Tab Send: "run" Previous Tab. The run isn'...
tacklingen's user avatar
1 vote
2 answers
436 views

When looking at man page, some characters produced by `man` are not rendered

When I do in my terminal a, for instance, man tr I can see that some of the texts are rendered in different colours, based on the control characters which man produces in its output, while some are ...
user1934428's user avatar
3 votes
1 answer
432 views

New iTerm2 tab displays ‘brew: command not found’ after updating PHP although brew is installed and included in PATH

I’m at the end of my rope here and hope you guys & gals can help out. I use the package bash-completion via brew, and, after this morning, I get this message when I open a new iTerm2 tab: -bash: ...
user avatar
0 votes
0 answers
53 views

Change/Remap find shortcut in iTerm2

I'm a new user of iTerm2. Recently I change the keybindings that Cmd+F, Cmd+B to like Alt+F, Alt+B (Esc+F/B) as the Bash keybindings via the iTerm2 > Preferences > Key Bindings. However, in this ...
laudai's user avatar
  • 1

1
2 3 4 5
13