Questions tagged [iterm]
iTerm is a third party replacement for the built-in Terminal application.
523
questions
0
votes
1
answer
66
views
Most homebrew installed commands outputs "zsh: killed"
When I type brew, I get the output:
zsh: killed brew
Writing out the whole path still gives the same output, so it doesn't seem like a path problem.
Furthermore, running /bin/bash gives the ...
0
votes
0
answers
26
views
Scrolling issue in vim after switch to iterm2
On my MacBook (Monterey 12.3.1), I recently switched from the standard terminal to iterm2. However, I noticed some strange behavior when using vim in the new terminal. If I scrolled to the top of ...
1
vote
1
answer
31
views
Touch ID window for sudo doesn't get focus when opened from iTerm
I enabled Touch ID for sudo using pam_tid.so, the problem is whenever I run a sudo command in iTerm, the Touch ID window opens but it is not focused, like this:
and holding my finger on the touch ...
0
votes
1
answer
11
views
Is it possible to set a per-profile HISTFILE in iTerm2?
Let's say I have a "Work" profile in iTerm2 and want to set a different HISTFILE for this profile, called .zsh_history_work, so that I don't see my work commands showing up in my regular ...
0
votes
1
answer
30
views
My PS1 Customized Terminal Prompt doesn't work on MacOS [duplicate]
I moved from Windows and my customized terminal prompt doesn't work anymore, I'm trying to figure out the reason for that. It's not working in iTerm2 or RoyalTSX or Terminal.
On windows:
export PS1=&...
3
votes
1
answer
56
views
How do I make searching unique per application or window?
I have iTerm2 and Chrome open.
In iTerm2 I press Cmd+F to search for "###".
Then in Chrome I search for something on the page using Cmd+F like the word "event"
When I go back to ...
2
votes
1
answer
20
views
option+left and option+right skip special characters
So I have a new Mac M1
I'm trying to set up the terminal as it was in my previous system.
The problem now is that when using option+arrow (left or right) it jumps to the next space character instead ...
0
votes
0
answers
45
views
Can't type tilde on iterm2
I try to type the left option key and n for typing ~ on my iterm2 but it doesn't work. When I do the same with the right Option key I can type a ~. After it I can type ~ with the left Option key until ...
0
votes
0
answers
41
views
Debugging phantom zsh process
Every once in a while (once a week?) I noticed that my mac's fans are spinning full speed. When I investigate my processes on activity monitor I notice a zsh process consuming near 100% on the cpu. ...
0
votes
0
answers
27
views
Iterm2 newline when very long command is typed into terminal
I'm just installed iTerm and I have a problem, when very long commands are cut. I want them the cut part to go to the new line. What setting should I tweak? Thanks!
0
votes
2
answers
133
views
Natural Text Editing is not working in iTerm2
I've seen dozens of articles that talk about making terminal life better by switching to iTerm2 and then turning on "Natural Text Editing" under Profile > Keys. Then you can use the ...
0
votes
0
answers
17
views
iterm2 execute commands at window restoration?
Is there anyway to execute certain command at window restoration? I have a few tabs saved as my window arrangement?
1
vote
0
answers
26
views
Is there a way to set the path to the iTerm preferences folder directly from the shell?
So I know that you can set the path to the URL or folder for your preferences using the following path in iTerm2:
General > Preferences > 'Load preferences from a custom folder or URL'
but can ...
0
votes
0
answers
52
views
iTerm2 clear screen except actual command
In iTerm2 cmd + K clears the complete screen. Is there a way to use this during a running command, so that everything gets delete except the current command and it's output?
0
votes
0
answers
37
views
iTerm2: Duplicate tab opens in a different directory
When I duplicate the tab, instead of opening it in the same directory, it opens up in a new directory that is not even home. I am assuming it's remembering the previous session but how do I make the ...
0
votes
1
answer
55
views
how to resize terminal.app's window pixelwise?
Terminal.app's window size always fit the rows and columns of its content, which make it impossible to maximize the window (always leaving a gap).
I know iterm.app has an option regarding this. Can I ...
0
votes
1
answer
52
views
iTerm2 I want to list a directory and navigate its content with the arrow keys
I wonder if it is at all possible when I list a directory using say ls -1, I would like to use the up & down keys to navigate the folder documents and open them when I hit Enter.
I've been ...
2
votes
2
answers
270
views
How do I debug zsh when startup performance is slow?
I'm using Z shell inside iTerm2 every time I open up a new window or a new tab it takes around 8 - 9 seconds to load.
I found some information on how to debug zsh. I came across this Speeding Up My ...
0
votes
1
answer
41
views
In iTerm how can I close a shell session when the running command finishes?
I open some iTerm2 sessions via ttab. I start these session for textual UI commands like top or commands which might run for a long time like cp -r <large-dir> <backup-location>.
After the ...
1
vote
0
answers
338
views
"client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0" - SSH error - MacOS 12
I'm getting the error client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0 during a ssh connection on the command line when the target host is known (already saved to the ...
1
vote
1
answer
48
views
How can I resize panes in iTerm2 using keyboard shortcuts [closed]
How can I resize panes in iTerm2 using keyboard shortcuts
0
votes
0
answers
77
views
How to make iTerm2 record session longer than 2 minutes?
I would like to review my iTerm2 recordings later on for reference, but I find that they only last a maximum of two minutes. Is there an option to make them last for the duration of the entire session,...
0
votes
0
answers
42
views
iTerm2 always prefer tab instead of new window when running script from Finder
When I double click a script from Finder or desktop, a new iTerm window is opened instead of tab. I never want a second iTerm window, how do I set it?
(To be clear, I prefer tabs, not the opposite.)
...
0
votes
0
answers
318
views
Missing files from ZSH config
Have been experiencing some issues after installing NVM and was/ still am getting errors related to oh-my-zsh and powerlevel10k.
At first, I was getting the following from pl10k:
[WARNING]: Console ...
0
votes
3
answers
105
views
How to remap left-arrow (←) key to ctrl in MacOS or iTerm2?
On a 2017 MacBook Pro 15", I want symmetry in my three modifier keys (ctrl, option, cmd), i.e. what's available to my right hand would be mirror-symmetrical to what's available to my left. The ...
0
votes
2
answers
410
views
Python 3.9 does not find packages that work with Python 3.8
I have a hard time understanding how Python is installed on my Mac. Not sure if it is important, but I have a Macbook Pro with an M1 Pro chip and come from years of using Linux with a package-manager ...
0
votes
0
answers
33
views
problem with ls in ~/Downloads directory [duplicate]
How can I fix the broken ls command in the ~/Download directory in macOS?
~/Downloads ls ✔ at 02:01:06 PM
ls: .: Operation not permitted
0
votes
0
answers
29
views
Iterm2 Text Stacking on Itself
I cannot figure out how to fix my iterm2 window. The text is simply overlapping itself when the window is anything except maxed out:
Of course, I can't use iterm2 like this, so fixing would be great. ...
1
vote
1
answer
2k
views
Command not found: /usr/local/bin/zsh
I uninstall homebrew on a Mac Mini M1 to reinstall it.
After opening a terminal to run the install shell script, the terminal produces the following output and becomes unusable.
[Command not found: /...
1
vote
0
answers
42
views
iterm2 badge keeps disappearing
Using iTerm2 Build 3.50beta4 and macOS Monterey noticed that the badge in the window keeps disappearing. It seems to only appear when resizing the window and only while ssh'd into a remote server. ...
0
votes
0
answers
42
views
In iTerm2, I can't run `ls` with both -a and -w flags. When I just run `ls`, I get columns, but when I run `ls -a`, it's all just in a single column
I'm transferring from Terminal to iTerm2 and am trying to set up my shortcuts. The problem is that when I run ls -a, everything is in one column whereas if I just run ls, it shows up in several ...
0
votes
0
answers
33
views
How to disable FN+ARROW shortcut in iTerm2
Whenever I press FN+ARROW (left or right) while in iTerm2, I get the following characters:
~
❯ 0C0C0C0D0D0D0C0C0D0D
0C appears when I click FN+LEFT and 0D appears for FN+RIGHT.
How to disable it?
4
votes
1
answer
152
views
Programs don't show up in jobs if I start them in the background with a shell script
I want to launch a three programs (2x streamlit, 1x python) in the background with a shell script:
#!/bin/sh
cd /Users/mc/src/crypto/ || exit
streamlit run dashboard.py &
streamlit run ...
0
votes
1
answer
45
views
Getting extra character when copy string to iTerm
I'm using iTerm and when when pasting some string I've just copied from the terminal command prompt, I get some extra characters on prefix and suffix that match 00~ and 01~ respectively.
I.e.
I've ...
1
vote
1
answer
25
views
Can you tell iTerm2 profiles top-level windows to never show up in Cmd-Tab?
I use a primary iTerm2 window, and some further iTerm2 windows which display specific information (e.g., like a dashboard). They live in well-visible positions on my screen, and do their own thing non-...
1
vote
0
answers
16
views
How can I map Command to Meta, except for Command-Tab and only in iTerm
There are a lot of tutorials for mapping the Option key (⌥) to Meta in iTerm, e.g. here, here and here to enable readline navigation and editing (M-b to move the cursor back a word, etc.).
What I'm ...
0
votes
1
answer
45
views
How do I turn off New Output notifications from iTerm2
I turned on iTerm2 shell integration to get notifications for long running commands, but I also get these notifications:
I don't want them, how do I disable them without disabling iTerm2 Shell ...
0
votes
2
answers
2k
views
Telnet in Monterey
I'm struggling to open telnet in Monterey through the browser.
I can manually telnet using the command and works perfectly; same if I setup iTerm2 as the default app but I'd really like to use the ...
2
votes
0
answers
38
views
is there a way to shift the top of the screen down in full screen mode in iTerm2?
I just got a new 14" macbook pro, which I love so much.. However, as soon as I launched iTerm2 and went into full screen mode, I said "uh oh" as I noticed my tabs were covered by the &...
0
votes
0
answers
34
views
Iterm2 dropdown terminal switches workspace to main when opened via hotkey
I'm struggling with making iterm2 to show it's dropdown terminal on the workspace I am currently working. It always switches to the main (the one which contains non-full-screen windows).
It used to be ...
1
vote
1
answer
46
views
How to set PATH and other env vars for apps with "Reopen windows when logging back in"?
I have the option "Reopen windows when logging back in" set, which on my 11.6 macbook will reopen apps like vscode and iTerm2 after I restart. I want the reopened windows to have the ...
1
vote
0
answers
177
views
No colors in zsh for first tmux session
When I start a new tmux session (macOS 11.5.1, iTerm2 3.4.10, zsh 5.8, tmux 3.2a) with tmux new, my terminal has no colors, it just displays everything in grey tones. But when creating a new window or ...
1
vote
0
answers
16
views
Is it possible to set localStorage in Firefox/Chrome/Safari from the command line?
Trying to automate some tasks I do multiple times every day, such as opening my browser and setting localStorage to the values I need. So far I'm able to open the browser on a site from the command ...
0
votes
0
answers
35
views
Launch iterm2 from external script (Ruby, bash, etc...) with N SSH sessions on N tabs
I do quite a lot of work on AWS EC2 instances. Every time I need to ssh in one instance I have to copy the IP address from the AWS web console or my app, open iterm2, type the command, etc. and this ...
0
votes
1
answer
28
views
How to send `<menu>` key to iTerm?
I know that there is a setting, iTerm > Preferences > Profiles > Keys > Key Mappings.
But where can I find hexcode for Menu/App key that is present in Windows keyboards, so that I can use ...
0
votes
2
answers
44
views
Closing an iTerm tab with multiple split panes
iTerm allows you to have multiple split panes open inside the same tab.
How do I close all the panes together and/or the tab housing all of the panes?
The standard close tab shortcut of ⌘ + W only ...
1
vote
0
answers
60
views
How to save console output with Iterm2 Triggers
Is it possible to save console output that is matched with a particular regex with Iterm2 Triggers to a text file ? For example, I need to save some particular logs for which I created iterm2 triggers....
0
votes
0
answers
26
views
How to create a file that will start 3 different instances of iTerm (or 3 different windows in iTerm) and run a command in each one of them?
Every time I restart my mac I have to open a bunch of iTerm windows/split panes and in each one of them run some commands to start my project. How can I do that in macOS?
1
vote
0
answers
25
views
tmux's extraneous visual bells in iTerm2
I recently started using tmux, I rely on visual bells (see Preferences -> Appearance -> Tabs -> Show new-output indicator) in iTerm2 to let me know when processes start/finish. When I start ...
0
votes
0
answers
209
views
How do I import my KDE Konsole color scheme to iTerm2?
I've spent many moons adjusting my default Konsole color scheme in KDE, and I would like to use it in iTerm2 on my Macbook Pro.
I have the Konsole color scheme file ardnew.colorscheme, and I currently ...