Questions tagged [iterm]
iTerm is a third party replacement for the built-in Terminal application.
539
questions
0
votes
0
answers
28
views
Opening a default amount of panes with default sizes in iTerm2
I am making the switch from VSCode to NeoVim and have finished setting up NeoVim. However, I am now trying to set it up so that whenever I open iTerm2 it launches a two vertically split panes. The ...
1
vote
0
answers
20
views
+50
Control-Option-<arrow> hotkey not working in tmux
I'm using tmux over iTerm2 in Mac OS 12.5.
I have such directives in tmux config file:
# resizing panes using Ctrl-Alt-arrows without prefix
bind -n C-M-Up resize-pane -U 2
bind -n C-M-Down resize-...
0
votes
0
answers
29
views
how to make the macOS terminal to use proxy
When I am using iterm in macOS 12.4, need the terminal also could use proxy. I have already set the system proxy to use sockets.
this works fine in Google Chrome, and in macOS termimal, I changed the ...
0
votes
1
answer
31
views
How to open text files in Vim (iTerm2) by double-clicking on their names in Finder?
I would like to open certain files in Vim (iTerm2) when I double-click on them in Finder (similar to this question)
The following snippet I found on this website gets most of the job done
on run {...
0
votes
0
answers
16
views
Delete key doesn't work in vim insert mode
I am using vim on a Mac in iterm2 and an external Windows style keyboard.
I would like to use the Del key to forward delete like it normally would on a text editor. However, when I press the Del key ...
0
votes
0
answers
16
views
iTerm - Moving back and forward one word is including dash
I am wondering is this a M1 vs Intel issue.
I reset both iTerms (on my two machines) to factory and I have tried both setting up Profile > Keys > Key Mappings and Keys > Key Bindings to Send ...
1
vote
1
answer
40
views
Operation not permitted when accessing Downloads folder
When I try to ls the ~/Downloads folder on my mac I get a ls: Downloads: Operation not permitted error. My user does have rwx permissions on the folder. I can look at the folder just fine in finder. I ...
0
votes
2
answers
64
views
How can I simulate typing on a keyboard when pasting from buffer
I'm recording a screencast involving iTerm demo. During the demo I want to type some commands. Since it's hard to type them for real, I just copy them from a text file and paste them into iTerm.
It ...
0
votes
0
answers
8
views
iTerm+ssh mouse actions suddenly showing text instead
Basically what the title says. Something changed and I can't figure out what, and I made a new iTerm profile.
When I do anything with my mouse in an ssh connection in iTerm (scrolling, trying to ...
0
votes
1
answer
42
views
update iterm2 title with SSH User & Hostname
How can I get iTerm2 to update the title of each tab with the User & Hostname of the remote SSH host? currently the best I can achieve is “ssh user@hostname” and with multiple tabs this makes it ...
0
votes
0
answers
23
views
How to store broadcast settings for iTerm2 arrangements
I moved from Ubuntu to Mac OS lately and I used terminator console with split screen and broadcast function. Terminator is not supported on Mac so i switched to iTerm2. It can do something similar, ...
1
vote
1
answer
43
views
System Keyboard Shortcuts don't work in iTerm2/Terminal for Mission Control
Using macOS Monterey 12.4 and have this shortcut set for Mission Control:
I have changed the Move left/right a space and activated these shortcuts.
I also have Karabiner Elements, but it doesn't ...
0
votes
0
answers
55
views
iTerm2 scrolling acceleration / speed
When scrolling with ⌘ + Up, is it possible to increase the scrolling speed or enable scrolling acceleration (speed goes up as the keys are held)?
0
votes
1
answer
115
views
iterm2 split pane - type simultaneously in both split windows
I am using iterm2. I would like to issue a command in one of the split pane windows and get that executed in the other split pane window session as well. How can I do this?
0
votes
2
answers
66
views
python shell becomes unusable after suspend (ctrl-Z) and 'fg' command
When I suspend python with ctrl+Z and try to get it back with fg, I cannot use the python interactive command prompt anymore. Pressing the Enter key produces ^M on the screen, Esc produces ^[ and even ...
0
votes
0
answers
129
views
set iTerm tab title to current folder + last command
I followed these directions to set my tab titles to the operating folder:
https://gist.github.com/phette23/5270658?permalink_comment_id=3020766#gistcomment-3020766
This is pretty cool… now my tab is ...
1
vote
2
answers
353
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
198
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 ...
2
votes
1
answer
92
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
25
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
82
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
60
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
68
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
151
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
69
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
80
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!
1
vote
2
answers
614
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
33
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
68
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
228
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
105
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
62
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
198
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 ...
4
votes
2
answers
822
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
105
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
1
answer
688
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
220
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
175
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
147
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
659
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
389
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
964
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
58
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
4k
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
69
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
130
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
58
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
216
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
87
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 ...