Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [iterm2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
9 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 ...
user avatar
  • 11
0 votes
0 answers
29 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? Thanks in advance!
user avatar
1 vote
0 answers
34 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 ...
user avatar
  • 111
2 votes
1 answer
209 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/...
user avatar
0 votes
1 answer
59 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 ...
user avatar
  • 1
0 votes
1 answer
95 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. ...
user avatar
  • 163
0 votes
1 answer
199 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): % /...
user avatar
  • 101
1 vote
0 answers
30 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 ...
user avatar
0 votes
0 answers
45 views

Tmux shortcut conflict with iTerm

I use tmux on iTerm and I'm having trouble to remap a particular shortcut. On tmux the default prefix M-Left and prefix M-Right are used to resize panes left and right respectively. The thing is iTerm ...
user avatar
  • 111
1 vote
0 answers
49 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, ...
user avatar
0 votes
0 answers
96 views

zsh completion: have the most recents files and directories near to the prompt and suggest first these most recent file and directory with "l" command

On MacOS Big Sur 11.3, here is my .zshrc. I would like to get the latest modified or create files and directories near to the prompt (sorted from the most recent up to the oldest ones): autoload -Uz ...
user avatar
0 votes
1 answer
41 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 ...
user avatar
1 vote
1 answer
179 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 ...
user avatar
1 vote
1 answer
65 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 ...
user avatar
  • 113
0 votes
1 answer
162 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" ...
user avatar
  • 131
0 votes
1 answer
367 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 ...
user avatar
  • 101
5 votes
1 answer
919 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 ...
user avatar
-1 votes
1 answer
999 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 ...
user avatar
  • 107
1 vote
0 answers
332 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 ...
user avatar
  • 181
1 vote
0 answers
697 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 ...
user avatar
0 votes
0 answers
70 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 ...
user avatar
  • 172
1 vote
1 answer
158 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 ...
user avatar
10 votes
2 answers
2k 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 ...
user avatar
2 votes
1 answer
880 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 ...
user avatar
  • 93
-1 votes
1 answer
2k 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 ...
user avatar
  • 155
0 votes
2 answers
75 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 ...
user avatar
  • 641
0 votes
2 answers
789 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 $...
user avatar
  • 319
0 votes
0 answers
199 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)?
user avatar
4 votes
0 answers
524 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 ...
user avatar
  • 279
-1 votes
1 answer
94 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 ...
user avatar
  • 1
1 vote
1 answer
483 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 ...
user avatar
  • 11
1 vote
1 answer
72 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(). ...
user avatar
3 votes
1 answer
3k 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 ...
user avatar
  • 157
2 votes
2 answers
3k 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 ...
user avatar
  • 32.6k
2 votes
1 answer
308 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): ...
user avatar
  • 813
4 votes
2 answers
260 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 ...
user avatar
  • 143
1 vote
0 answers
47 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 ...
user avatar
  • 50.7k
0 votes
0 answers
379 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 ...
user avatar
  • 50.7k