`iterm2` is a GPL terminal emulator available on macOS.
Questions tagged [iterm2]
859 questions
-1
votes
2 answers
The display is wrong when using iTerm2 + screen + emacs on macOS monterey
When I use iTerm2 + screen + emacs, the display is something wrong.
For example, underline is set automatically at whitespace even if I don't customize setting.
And character's color is different from what I don't use screen.
The color is pink on…

htano
- 55
- 4
-1
votes
1 answer
issues with spawn id not open when executing script from iTerm2
I am trying to write a script and execute under iTerm2 profile. However whenever I open the new tab i run into this error. but I execute the same script on Terminal and no problem for it. anyone may know why?
expect: spawn id exp6 not open
`while {…

jacobcan118
- 7,797
- 12
- 50
- 95
-1
votes
1 answer
how to install http in terminal in Macbook pro 2021?
I'm trying to install http using terminal for vscode in Macbookpro
this is the website that I use and what I try to install:
p5.js manager
https://www.youtube.com/watch?v=LdWleSHQTcw
sudo npm install -g p5-manager
Workflow:…

NetLordOfData
- 73
- 1
- 1
- 6
-1
votes
1 answer
Gruvbox color-scheme not working in tmux-sessoin but working working in normal iterm2
these values are in my tmux-session
I have tried changing these values.
-1
votes
1 answer
iTerm2 not showing currently where it's running
I just installed iTerm2 and it's no showing accurately where my computer is running, I want to change on where it's running so is accurate.
I want to get rid of "on [cloud icon] (sa-east-1)" because I'm not actually on AWS Cloud to show this…

Thiago Zazirskas
- 21
- 4
-1
votes
1 answer
How to run a commandline in a terminal (Terminal, iterm2, etc)
I am looking for a general and safe way to run a script string in terminals. There are dozens of Q&A on stack exchange, but all of them fail to field separate or escape properly, do not glob, quote etc since most of them pass the string through…

ManuelSchneid3r
- 15,850
- 12
- 65
- 103
-1
votes
1 answer
Fish Shell : Set formatted string to variable
I want to open terminal with multiple instances of same server. For example, csshX server1 server1 server1
I'm trying to assign the formatted list of strings to single variable and use it in csshX.
#!/usr/local/bin/fish
set nmdat (echo 'server1 ' |…

Ram
- 103
- 6
-1
votes
1 answer
Change jest test output (iTerm being weird)
I am using latest iTerm on catalina with the "Semantic History" feature which allows you to Cmd+Click urls and filename/paths in the terminal. I set iTerm to open vscode:
This seems to work well if the text is like "src/foo/bar.js:3:3" - however if…

Devin Rhode
- 23,026
- 8
- 58
- 72
-1
votes
1 answer
Meta key in Big Sur
I have changed the option key to meta in iterm2, but the meta key is not working, but writing signs like a question marks. (see in the screenshot).
In the terminal the meta key is working when toggled in preferences.

David
- 2,926
- 1
- 27
- 61
-1
votes
1 answer
JetBrains Intellij macOS light theme for iTerm2
I am currently using the macOS Light theme in my IntelliJ.
When I press: System Preferences -> Appearance and Behavior -> Appearance -> Theme, I can see macOS Light. I am also using light mode on my machine.
I am quite interested in the same theme,…

PatPanda
- 3,644
- 9
- 58
- 154
-1
votes
1 answer
Execute last command in iTerm2
To execute the last command in iTerm2, I can do:
Ctrlpreturn
How can I do a shortcut to execute this? When I try doing a remap "send text" it only sends the literal text:
$
What would be proper way to execute the last command?

samuelbrody1249
- 4,379
- 1
- 15
- 58
-1
votes
3 answers
Why does ls -lSh command return very small file sizes?
When using the ls -lSh command, the output of the size of the files is very small. For instance:
ls -lSh | grep Xcode.app #my command to terminal while in Applications directory
drwxr-xr-x@ 3 root wheel 96B Dec 17 14:59 Xcode.app #output
As…

nomadj
- 31
- 5
-1
votes
2 answers
How to open working directory of a file showing on iterm2 by mouse?
There is a file showing on iTerm2 screen as below
test.txt
I want to open working directory of this file using iTerm2. But ⌘-click only opens files but not its working directory on Finder. I do not find any keys or method from iTerm2 to get this.

Jack
- 1,724
- 4
- 18
- 33
-1
votes
1 answer
git@github.com: Permission denied (publickey) ERROR
I've have been trying to push to origin master, and I was getting different errors now I'm getting this
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access…

Batuhan Dogan
- 1
- 1
- 1
-1
votes
2 answers
iterm broken pipe when running tmux from profile command
Getting Broken Pipe when executing tmux command from profile on iterm2.
When I execute tmux from command line there is no problem.
>echo $PATH…

igx
- 4,101
- 11
- 43
- 88