Questions tagged [iterm2]
The iterm2 tag has no usage guidance.
42
questions
1
vote
1
answer
54
views
In vim: stop SHIFT+SPACE from discarding all unsaved changes
Every time I type Shift+Space in vim, it undoes all changes to the file that have not yet been written. I would like this to not happen, as it is extremely easy to press Shift+Space by accident.
I am ...
0
votes
1
answer
39
views
Double zsh prompt is showing unformatted then formatted
Any command I run (aside from clear) results in a double zsh prompt -- the first one showing the unformatted prompt, the second one showing the correct, formatted prompt.
My ~/.zshrc file:
if [[ -r &...
2
votes
0
answers
49
views
How to systematically troubleshoot a broken gnu-screen installation?
I recently started to work in a shared Linux cluster that a version of gnu-screen that I consider unacceptably old (4.01, from 2006).
I was not able to convince the system's administrators to install ...
0
votes
1
answer
115
views
iTerm2 - Deleting an entire word until whitespace [duplicate]
I have my iTerm2 configured with a shortcut to delete a word (keyboard mapping of Hex code 0x17).
However, I want it to delete until reaching a whitespace:
Current:
cd hello-world -> cd hello-
...
0
votes
0
answers
642
views
new tmux pane not sourcing zshrc file
Using iTerm2 with tmux and zsh. I have an issue that new tmux panes doesn't source ~/.zshrc file
I have customized my terminal (when running source ~/.zshrc manually it works) but when opening new ...
0
votes
1
answer
44
views
On macOS, how do I clear the previous bad returns in iTerm2?
I want to permanently clear the bad returns in iTerm2. I have used "Clear" and "command-k" etc including with "l" shortcuts but it apparently only clears the current ...
2
votes
0
answers
75
views
Byobu (tmux backend) after copying text in scrollback mode automatically quits scrollback mode
To clarify, "automatically quits scrollback" mode means byobu goes into normal mode and jumps to the bottom, and I can't just go back to the point I previously scrolled up to.
I am also ...
0
votes
1
answer
422
views
My iTerm2 prompt is showing my username @ 192 and not my machine name... why?
Why would my iTerm2 command prompt change to user@192 instead of my machine name? And how do I prevent it from changing to user@192?
2
votes
0
answers
90
views
Prevent the line `load:... cmd:... running ...` upon SIGINFO
Issuing SIGINFO (e.g. by pressing ^T) while a terminal process is running usually results in a printout of a line
load: 2.93 cmd: sleep 7826 waiting 0.00u 0.00s
If I have written the tool that's ...
2
votes
1
answer
673
views
How to disable iTerm2 tmux integration
iTerm2 runs slowly when using tmux (without -CC control mode integration). It is clearly designed with the intention of using -CC.
However, I don't like the desktop window management of tmux windows/...
0
votes
1
answer
554
views
Terminal output looking weird [duplicate]
I just got a new macOS system, and the output text in the terminal is not properly formatted.
Every line is indented every time a newline is printed, instead of "on top" of each other so it ...
2
votes
1
answer
337
views
MacOS/iTerm2/fish arrow keys stops working after terminating a process with ctrl+c
I am using iTerm2 on my mac pro, and using fish as my shell. Every time I have a process running and I break it by pressing ctrl+c, the arrow keys stops working after and starts emitting ^[[A etc.
...
0
votes
1
answer
617
views
ncurses applications not working in iTerm2
I cannot get commandline tools that use ncurses to work in iTerm2. They either fail or fall-back to some other UI if they have it (e.g. text only).
Example for VLC (installed via Homebrew):
% /...
1
vote
0
answers
48
views
Option+Left in Bash on Mac sometimes produces ;9D
I've set up my bash in iTerm2 on Mac so that Option+Left goes backward a word, and Option+Right goes forward a word. I've done this to have a similar setup as on my Linux machine.
However, sometimes ...
1
vote
0
answers
106
views
iTerm2: Upon maximizing a pane within the window, the pane still does not resize/reflow
I am using iTerm2 (Build 3.4.9beta1) - but, the same behavior is present in iTerm2 3.4.8 which is the currently released version.
When I open new panes within the same tab, everything is fine. But, ...
0
votes
1
answer
106
views
Can anyone explain to a beginner what terminal profiles are?
I'm a beginner and I recently started using my command line (I'm on macOS) for things like npm, git and ssh.
I read something about terminal profiles and when I just browse the website of iTerm2, I ...
5
votes
1
answer
562
views
SHIFT+SPACE on terminal sends escape sequence
am using iTerm with Tmux, but I see this without tmux. If I hit SHIFT+SPACE I get the escape sequence ^[[32;2u. Is there a way to suppress it or disable that escape sequence? I am not seeing it in my ...
1
vote
1
answer
209
views
.bashrc not being run despite being sourced in .bash_profile and .profile on Mac/iTerm2
.bash_profile and .profile contain:
[[ -s ~/.bashrc ]] && source ~/.bashrc
To get things working when opening a new terminal or tab, I have to manually run:
$ source ~/.bashrc
$ $BASH_VERSION
...
0
votes
1
answer
278
views
iterm2 - vim is printing line numbers while scrolling
In iterm2, while scrolling in the vim I see a strange behavior. Whenever I am scrolling it is printing line number with scrolling. How to overcome from this behavior
call-hometic_scale_1.txt" ...
0
votes
1
answer
615
views
Iterm2: tmux support not working with windows WSL (tmux -cc)
I use iterm2 on my local MacOS and tmux V3.0a on the target (Windows 10 WSL). When I init a connection with "tmux -CC" I can see something that looks like control traffic. I'd expect that ...
6
votes
1
answer
2k
views
How can I send an escape sequence from a nested tmux session to iTerm2?
This works (puts the date and time in the clipboard) in just iTerm:
printf "\e]1337;Copy=:$(date | base64)\a"; echo $(pbpaste)
This works in tmux running locally (using the DCS passthrough):
printf ...
0
votes
1
answer
2k
views
colorssh:7: maximum nested function level reached; increase FUNCNEST?
I got the following message when trying to ssh into a server using iterm2 in macosx
colorssh:7: maximum nested function level reached; increase FUNCNEST?
When using terminal app it worked fine. Not ...
1
vote
0
answers
464
views
how do I make the nvm-managed version of node the default one for all processes?
I use nvm to manage node. However, every new terminal I create uses the wrong version. They use the one in /usr/local/bin/node, which is where homebrew put node. That's node v5.
Using nvm, I've ...
1
vote
0
answers
1k
views
iTerm2 screen buffer not getting clear
I'm using bash as my shell and iTerm2 build 3.3.1 as my terminal emulator on Mac OS X 10.14.6 Whenever I use a type a long command, iTerm window overwrites my current line with the new symbols even ...
0
votes
0
answers
136
views
Repeated characters SSHing into archlinux machine from mac with iterm2
I'm SSHing into an arch-linux instance. The account in question uses the ZSH shell. When I type characters I get an inconsistent repetition of characters. It looks like this. As you can see, the ...
1
vote
1
answer
211
views
What is this visual artifact in vim?
I am using vim in iTerm2 on OSX Mojave.
When I hit the key combo: ⌘ + ; at line 67, a blue bar appears beneath the line:
I don't know what is it for and not sure if it is a vim function.
Anyone ...
16
votes
2
answers
3k
views
Ctrl + U deletes whole line regardless of cursor position
I am learning terminal tips. In this tutorial, the guy says that Ctrl + U deletes everything from the cursor until the end of line. In my case, it always deletes the whole line. I am using zsh on ...
2
votes
1
answer
1k
views
TMUX + Rails = stty: 'standard input': unable to perform all requested operations
I have a fairly large Rails project that always returns the following after every command in the Rails console:
stty: 'standard input': unable to perform all requested operations
This only happens ...
-1
votes
1
answer
3k
views
Quotes don't work anymore with: git commit -m "My commit message" [closed]
I am not sure what is going wrong (terminal, shell, system?), but when I enter:
git commit -m "My commit message"
this morning, I get:
error: pathspec 'My' did not match any file(s) known to git
...
0
votes
2
answers
118
views
iTerm2 inyecting text into the console
I'm using iTerm2 in a MacOS Sierra. I'd like to have the ability to inject some text into the console (like for executing a string of commands).
Ideally, I could have a local file
# local.txt
echo ...
0
votes
2
answers
1k
views
How can I launch a new session of tmux in iTerm2 on a separate window?
I would like to start a tmux session on a separate window in iTerm2. Now I'm writing my own configuration script to launch the session.
tmux new-session -s dev -n main -d
tmux send-keys -t dev "cd $...
0
votes
0
answers
306
views
How to change color of any IP address in iterm?
How can I change the color of any IP address displayed on the iterm2 (CentOS)?
4
votes
0
answers
626
views
Do colour schemas interfere with settings from iterm2, oh-my-zsh and vim?
There are so many color schemes for terminal environment, themes for shell and color coding schema for vim. I wonder what's the relation between them and do they interfere with each other?
For ...
-1
votes
1
answer
218
views
How to change colors as user in Redhat linux server (iterm2, ssh)
My school server is Redhat 7.4 and I really hate the default colors which are printed in ls. bold and dark colors with a black backround is really hard for me to see any file names.
I am currently ...
1
vote
1
answer
509
views
Unable to start firefox on centOs 6 from iterm2 on mac
I have installed firefox and xauth on the centOs 6.6 server as follows:
sudo yum install firefox
sudo yum install xauth
On my mac, I am using iTerm2
On my iTerm2 session, I also exported my display ...
1
vote
1
answer
76
views
Different cat Output for Hard Linked File over SSH? [closed]
I have a single initial file created using a C program on OpenSUSE Leap VirtualBox VM being accessed via ssh from OS X. The file is created with mkstemp() that a hard link is created for using link(). ...
4
votes
1
answer
4k
views
How to ssh-add a SSH key without recreating a new instance of SSH agent?
I add the following in my .bashrc
ssh-add ~/.ssh/id_rsa
so when I open a new tab in my shell/terminal app (iTerm2 on macOS), it automatically add the SSH identity using the SSH agent and I don't ...
3
votes
2
answers
4k
views
How to use regex negative lookahead?
I'm trying to use iTerm2 profile triggers on my mac to change the prompt if I leave my home directory. This rule should only apply when the node I'm on has a hostname of headnode. The prompt will ...
2
votes
1
answer
504
views
Colored terminal output ignores reset sequence. Color continues
I fiddled with this for a couple of hours and couldn't find a solution...
Lets say I print this to a terminal (tested with bash and zsh in a genome-terminal in a VM running a fresh Linux Mint):
...
4
votes
2
answers
287
views
Execute cd in two windows with one command
I used iTerm2. I often split the pane into two windows.
When I want to change the directory in one, I want to
also change the directory in the other automatically.
Is this possible? A Tmux solution ...
1
vote
0
answers
54
views
Allow multiple iTerm2 window
I'm using iTerm2 with XtraFinder. XtraFinder allow you to open a terminal in the current folder.
In version <= 2.1.4, it works great.
When I upgraded to version 3.0.9, it never opens a new iTerm2 ...
0
votes
0
answers
453
views
sz stuck with iTerm2
I'm using sz with iTerm2, and sz takes a minute to download a small file (750 byte), I'm not sure why
Looks like sz is waiting for something?
Anyone know why?
Besides all that, the contents of the ...