Questions tagged [iterm2]

41 questions
16
votes
2 answers

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 macOS.
Jack Thomson
  • 411
  • 4
  • 10
6
votes
1 answer

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 "\ePtmux;\e\e]1337;Copy=:$(date | base64)\a\e\\";…
Chas. Owens
  • 163
  • 6
5
votes
1 answer

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 preferences as a predefined escape sequence
4
votes
0 answers

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 example, I'm using iterm2 terminal emulator, Oh My Zsh…
SLN
  • 299
  • 5
  • 13
4
votes
1 answer

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 need to manually type SSH password in that tab. But…
qazwsx
  • 177
  • 1
  • 6
4
votes
2 answers

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 would also be welcome.
Mark S.
  • 143
  • 2
3
votes
2 answers

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 also include the machine's location in parenthesis…
jesse_b
  • 35,934
  • 12
  • 91
  • 140
2
votes
0 answers

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 a more recent version of gnu-screen, so I…
kjo
  • 14,779
  • 25
  • 69
  • 109
2
votes
0 answers

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 using iterm2 and use mouse (set in .tmux.conf) to enter…
Aethan
  • 21
  • 1
2
votes
0 answers

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 running, I can make it catch the signal SIGINFO and…
Bubaya
  • 121
  • 3
2
votes
1 answer

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/panes. I want tmux keyboard shortcuts and…
2
votes
1 answer

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. Attached a screenshot to my iTerm2 preferences >…
Bishoy
  • 183
  • 6
2
votes
1 answer

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 within TMUX. Without using TMUX I don't see this…
Nathan
  • 93
  • 6
2
votes
1 answer

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…
Rotareti
  • 843
  • 2
  • 9
  • 18
1
vote
0 answers

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 the setup stops working, and when I press…
1
2 3