Questions tagged [iterm2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
Peter's user avatar
  • 11
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 &...
joon_bug's user avatar
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 ...
kjo's user avatar
  • 14.8k
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- ...
Yaron Budowski's user avatar
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 ...
Eyal Solomon's user avatar
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 ...
user avatar
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 ...
Aethan's user avatar
  • 21
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?
LaDul_FSDMex's user avatar
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 ...
Bubaya's user avatar
  • 121
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/...
P H Kaznowski's user avatar
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 ...
Wenger's user avatar
  • 1
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. ...
Bishoy's user avatar
  • 183
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): % /...
scetoaux's user avatar
  • 101
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 ...
Thomas McGuire's user avatar
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, ...
Vijay Raghavan Aravamudhan's user avatar
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 ...
ralphjsmit's user avatar
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 ...
Jamil Seaidoun's user avatar
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 ...
h.and.h's user avatar
  • 123
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" ...
vivek's user avatar
  • 131
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 ...
Roelof's user avatar
  • 101
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 ...
Chas. Owens's user avatar
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 ...
moficodes's user avatar
  • 117
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 ...
Tom's user avatar
  • 191
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 ...
Chinmay Chhajed's user avatar
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 ...
fraxture's user avatar
  • 172
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 ...
Anthony Kong's user avatar
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 ...
Jack Thomson's user avatar
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 ...
Nathan's user avatar
  • 93
-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 ...
Frank's user avatar
  • 155
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 ...
arod's user avatar
  • 771
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 $...
Blaszard's user avatar
  • 359
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)?
user291126's user avatar
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 ...
SLN's user avatar
  • 299
-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 ...
Joona's user avatar
  • 1
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 ...
c g's user avatar
  • 11
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(). ...
Adam Thompson's user avatar
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 ...
qazwsx's user avatar
  • 177
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 ...
jesse_b's user avatar
  • 36k
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): ...
Rotareti's user avatar
  • 843
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 ...
Mark S.'s user avatar
  • 143
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 ...
daisy's user avatar
  • 53.7k
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 ...
daisy's user avatar
  • 53.7k