Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
33 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
22 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
40 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
  • 153
0 votes
0 answers
38 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
  • 363
0 votes
1 answer
40 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
0 votes
1 answer
56 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,970
1 vote
1 answer
124 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
  • 11
1 vote
1 answer
141 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
  • 363
1 vote
0 answers
47 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
36 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
112 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
48 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
37 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,321
0 votes
1 answer
43 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
58 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
220 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
28 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
32 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
3 votes
1 answer
242 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
  • 479
1 vote
1 answer
186 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,234
1 vote
1 answer
201 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
94 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
214 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
104 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
166 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
61 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,745
1 vote
1 answer
158 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
1k 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
  • 113
0 votes
1 answer
139 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
72 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
168 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
54 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
  • 151
2 votes
1 answer
399 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
  • 347
0 votes
0 answers
37 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
156 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
348 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
267 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
40 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
415 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
333 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
46 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 vote
0 answers
70 views

Remove unwanted entries in $PATH [duplicate]

I have multiple entries in my $PATH. I learned a ton about the path environment variable yesterday, but prior that I must have added some entries multiple time, or something. I have searched for this ...
Superonov's user avatar
2 votes
1 answer
914 views

how to let `clear` command just clears the current screen

I use iTerm2 apps as my terminal option on my Mac computers. On my 1st Mac, when I type clear, it just clears out the current screen, and when I scroll up, it could still show the previous contents on ...
Fisher Coder's user avatar
0 votes
0 answers
111 views

How can I avoid URL encoding when clicking on links in iTerm2?

In iTerm2, if I output this from a zsh script: echo "https://console.cloud.google.com/logs/query;query=..." The output will look right: https://console.cloud.google.com/logs/query;query=... ...
John Churchill's user avatar
1 vote
1 answer
1k views

open iTerm2 as floating popup window on current app instead of in a new window

when I launch iTerm it opens in a new window, I want to open it in front of the current app. I know I can set a hotkey (https://apple.stackexchange.com/a/48805/424333) that'll show iTerm on the ...
GorvGoyl's user avatar
  • 699
0 votes
1 answer
79 views

Acrobat Pro DC opens in the background when launching from the CLI

When I launch Acrobat from iTerm2 / Bash, Acrobat runs and loads the file, but it doesn't load on top of other applications like I would expect. I have to Cmd+Shift+Tab (to select the last ...
Chad Skeeters's user avatar
1 vote
1 answer
371 views

iTerm2 Python scripting on M1/M2 (Apple Sillicon) [duplicate]

iTerm2 can be scripted with Python When I run Python REPL or Python script through iTerm2 Scripting menu on Apple Sillicon architecture (M2 in my case) it terminates with following error: Bad CPU type ...
Michal Bernhard's user avatar
0 votes
1 answer
316 views

How can I change PS1 in zsh to show the current directory in addition to the path?

On macOS 13.1 (22C65) and using zsh in iTerm2 I'm trying to customize my shell. I've made decent progress with my POWERLEVEL9K_DIR_CLASSES: the path is white all my BACGROUNDS are dark I hope to ...
HDS_frenchguy's user avatar
0 votes
1 answer
283 views

iTerm scrollback limit not working?

I have set the scrollback limit to 20000 for the Default Profile: However the scrolling only has 1000 lines. I verified by tiny python program writing 1200 lines to an output file and then cating the ...
WestCoastProjects's user avatar
1 vote
1 answer
270 views

how to minimize iterm2 window when closed using red window button

Whenever I click on the close window button (red), it closes my current iterm2 window, then when I click on iterm2 in my dock again, it opens a new one (I suppose), my entire iterm2 prompt is gone, ...
HDS_frenchguy's user avatar

1
2 3 4 5
13