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
0 votes
0 answers
14 views

How to prevent “iTerm.app” would like to access data from other apps [duplicate]

5.10) on a MacBookPro M1 Max with MacOS 15.1.1. After the Mac has started an Bash-Script automatically starts and should do the following: function ragx() { cd ~/projects/chroma docker-compose ...
ruese's user avatar
  • 1
1 vote
2 answers
53 views

Run script on quit with iTerm2

How can I run a script on quit with iTerm2? I don't just want to run it whenever I minimize or close the window, but specifically on quit. This is because I want to run Amazon Q when I start iTerm (...
Anonyo Noor's user avatar
0 votes
2 answers
39 views

How to open four terminal section in iTerm like a grid?

I have a bash script that open four terminals showing the output of their executed commands in four windows/tabs to see their output together. I need to create a bash or AppleScript file that when is ...
Real Dreams's user avatar
0 votes
1 answer
23 views

Backspace/Esc/Return keys require me to use Ctrl modifier to get them work with vim when using iTerm2 and 'Screen Sharing' app

I got a Mac Mini and I'm using the screen-sharing app to log into it from my MacBook Pro. It works, except there is this one quirk under the following conditions: Using iTerm2 terminal emulator SSH ...
StevieD's user avatar
  • 1,708
1 vote
1 answer
46 views

Go back/forward one word keybinding does not work in Nano 8.2

I'm using GNU Nano 8.2 in ZSH on macOS Sonoma and I'm trying to figure out why the standard keybinding to move the cursor back or forward one word, ^ + arrow keys, doesn't work. This happens both in ...
Ludon89's user avatar
  • 11
1 vote
1 answer
815 views

How to switch to a dark background in iTerm2?

I've just installed iTerm2 on a Macos Sonoma system and I can't figure out how to use a theme with dark background in it. In the settings I select the Dark theme, but it doesn't seem to have any ...
Eugene Yarmash's user avatar
4 votes
2 answers
983 views

No route to host on iterm2 only

For some unexplained reason, iterm2 cannot connect to (at least some) devices on my local host. I get: ssh: connect to host 192.168.252.248 port 22: No route to host Initially I thought this was ...
Lethargos's user avatar
  • 153
0 votes
0 answers
20 views

When hitting enter in iterm2, it sometimes opens a menu bar instead of running the command

I recently switched from Hyper terminal to iterm2. iterm2 shows really weird behaviour where on every 10th or so enter, it opens a menu bar dropdown instead of executing the command. Does anyone know ...
Cornelius Roemer's user avatar
0 votes
0 answers
36 views

Turn off distracting popups in iterm2

When I'm typing in iterm2, there are occasionally popups and other similar visual distractions. One particularly intrusive one pops up image links every time I press the command key. Generally ...
Addlai's user avatar
  • 170
0 votes
0 answers
31 views

Force new iTerm tabs in existing window

How can I force to open new tabs in existing window? Use case: I use launchbar to search for folders to open these in iTerm2 via shortcut CMD + T. Observed behaviour: the folder opens in a completely ...
christopher.online's user avatar
0 votes
2 answers
110 views

What can I use iTerm2's Profiles feature for?

I basically use iTerm2 Profiles as the connection management for SSH, each profile manages a SSH connection. What other use cases do profiles have besides SSH management? I googled iTerm2 profiles but ...
Qiulang 邱朗's user avatar
2 votes
1 answer
88 views

iterms2 sourcing bash even if zsh is default

I looks like my iterms terminal is sourcing bash before using zsh and it is doing it multiple times. I can't figure out why. On the left is the startup from my mac terminal and on the right from items ...
RSale's user avatar
  • 121
1 vote
2 answers
75 views

How can I hilight or process Unicode characters when pasting to Terminal apps from PDFs?

Sometimes I copy one-line scripts into the terminal from PDF files. Since they are copied from PDFs, sometimes they contain "shady" characters, such as non-breaking spaces or difficult non-...
Seamus's user avatar
  • 5,077
3 votes
1 answer
119 views

How can I stop iTerm2 from hiding first line of my clear; ls -F alias command?

I've been using a cls alias over 20 years: cls="clear; ls -F" Simply, clears screen, then lists files. It's become a habit now - I cannot stop using it ... However, with the newer releases ...
RichWalt's user avatar
  • 151
1 vote
0 answers
51 views

iTerm2 adds extra characters when pasting [duplicate]

I am developing on a MacBook Pro OS 14.5 and use iTerm2 3.5.3 Since I am originally a Linux user I do a lot of copy and paste with my mouse: copying via marking the text in iTerm2 and pasting it via ...
Calamity Jane's user avatar
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
7 votes
1 answer
710 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
164 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
41 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
  • 455
0 votes
0 answers
56 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
239 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,152
1 vote
1 answer
66 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
19 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
24 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
191 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
88 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
60 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
137 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
  • 425
0 votes
1 answer
65 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
94 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
  • 2,002
1 vote
1 answer
371 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
  • 31
1 vote
1 answer
352 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
  • 425
1 vote
0 answers
96 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
  • 1,152
0 votes
1 answer
293 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
1 vote
1 answer
339 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
  • 123
2 votes
1 answer
73 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
82 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,647
0 votes
2 answers
89 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
104 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
976 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
1 vote
0 answers
67 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
855 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
  • 627
2 votes
1 answer
473 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,264
1 vote
1 answer
795 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
128 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
546 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
123 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
218 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
  • 205
0 votes
1 answer
74 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,815
1 vote
1 answer
314 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,152

1
2 3 4 5
13