As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [tmux]

tmux is terminal multiplexer software, allowing users to work with terminals using multiple windows and panes, which can be created, removed, attached, and reattached as needed.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Tmux doesn't read tmux.conf on startup if its in ~/.config/tmux/tmux.conf but works if I put it in ~/.tmux.conf

When placed in ~/.config/tmux/tmux.conf, Tmux does not read the configuration file on startup. It works if I source it afterwards. However if I kill the tmux server and start it again it reverts to ...
Aziz76's user avatar
  • 1
0 votes
1 answer
47 views

Count commandline arguments of parent ssh process... on Windows

I make heavy use of this technique get a Linux tmux console. The intent here is that the Match...exec does not execute the RemoteCommand when I'm doing an ssh host command, so remote execution doesn'...
Autumn's user avatar
  • 301
1 vote
0 answers
83 views

Speed Up Zsh Loading Time in tmux

Like many users, I'm experiencing slow load up times with my shell on macOS. I've seen many questions about this topic, and I'm using a suggested workaround, which is setting the terminal emulator (...
buldog9800's user avatar
0 votes
1 answer
23 views

Unusual behoiur in tmux, Tab clears the pane when it's not set to

For some unknown reason in Tmux the 'Tab' key clears the pane I'm in, which is annoying when I use 'Tab' to indent in Neovim and 'Shift Tab' to unindent. Is there a way to fix this (stop 'Tab' ...
arkosno's user avatar
0 votes
2 answers
59 views

How to show the terminal associated with a window in the status line

I tend to have a workflow with many terminal windows on my screen all running tmux with various different things running in them. I often find myself wanting to know "where is this background ...
Chris Dodd's user avatar
1 vote
0 answers
64 views

Bug with tmux status bar and terminal lines in zsh and MacOS

I have a bug in my tmux. The status bar randomly transform into two rows (see image below) or disappear completely. Also, some lines of the terminal command disappear. See image below where the last ...
ℂybernetician's user avatar
1 vote
0 answers
56 views

tmux inside Cygwin mintty - unicode characters broken depending on command

Please help me understand what's going on with some unicode characters looking right inside mintty + tmux in some command outputs, but not in others. Sample commands: for c in 00AE 1F007 1F32D 1F603; ...
EndlosSchleife's user avatar
0 votes
1 answer
221 views

file hyperlink not working under tmux

When using tmux hyperlink feature does not work. For example: ls --hyperlink *.pdf list .pdf files and provide a link to click and open when using under terminal emulator, but fails when using tmux. ...
LEo's user avatar
  • 103
0 votes
0 answers
133 views

Automatically reconnecting to SSH with iTerm2 and tmux integration

I am SSHing into a remote server with tmux using iTerm's tmux integration as so: ssh $myhost -t "tmux -CC a -t main || tmux -CC new -A -s main" However, when I walk away from my mac for 30 ...
Daniel's user avatar
  • 101
1 vote
1 answer
154 views

Copy to clipboard in RHEL remote server on Windows Terminal / WSL?

Not sure if mine is a weird/unusual workflow, but I have a Windows machine, where I use Windows Terminal. I usually ssh into a remote server, using WSL on Windows Terminal. The remote server is ...
rollschild's user avatar
0 votes
1 answer
237 views

How to start tmux session that overrides environment variables set in .bash_profile?

Suppose I have an environment variable set inside .bash_profile: export ABC=from_bash_profile. $ echo $ABC from_bash_profile When I try to create a new tmux session with environment variables for ...
m01010011's user avatar
  • 151
0 votes
1 answer
40 views

tmux "freezes" when connecting via IPv6 (but not via IPv4)

I connect from my Win 10 host to a Virtualbox Debian (bullseye) guest via zeroconf/mDNS - ssh - tmux. When I use IPv4 everything works as expected, with IPv6, tmux "freezes" after a couple ...
T Nierath's user avatar
  • 507
0 votes
0 answers
10 views

Is there a way to subtree TMUX windows to arbitrary depth?

Pressing prefix + w gives me a list of windows. Let's say I have something like... Class A inherits from Class B, which inherits from Class C. I'd like to set up my windows such that prefix + w will ...
AmagicalFishy's user avatar
1 vote
0 answers
323 views

how to script tmux to execute a script in a tmux session(window)

I have this script: #!/bin/sh tmux new-session top \; split-window -v \; split-window -h \; select-pane -t 0 \; split-window -h \; attach-session I would like to execute a shell script in each ...
Jacob Bostroem's user avatar
0 votes
0 answers
31 views

Why do my settings in iTerm2's Bash shell not translate into Tmux sessions?

I installed Bash via Homebrew and when I type in which bash I get /opt/homebrew/bin/bash. I also changed the default shell from Z to Bash as well and made custom color configurations. When I create a ...
Sean's user avatar
  • 113
0 votes
0 answers
73 views

run command in a new window of a separate tmux detached session

What is the tmux command to open a video file (with mpv) with its terminal output opened in a new window of another session called media (create the session if it doesn't exist)
conduit_unsteady_frisbee's user avatar
0 votes
0 answers
11 views

Getting Meta + Click to work in tmux

I am using bash in tmux in iTerm2 on MacOS. When I use a regular iTerm2 session, I can do ⌥ + Left Click to jump to the clicked position (emulating multiple arrow key presses). However, within tmux ...
Adam Millerchip's user avatar
0 votes
1 answer
106 views

ZSH Terminal: Can't find tmux.cnf file

I've installed Tmux in my Arch Linux GNOME system and for changing keybinds. I need to configure .tmux.cnf, but I can't find it. I searched for ~/.tmux.cnf, /etc/tmux.cnf or /etc/.tmux.cnf and seeing ...
MatiasGdo's user avatar
0 votes
0 answers
125 views

Set the tmux socket via configuration

I regularly SSH to a Linux server that is set up with a proxy that randomly redirects you to one of two actual servers that share a filesystem. This means that, if I tmux attach, I'll be assigned to ...
Migwell's user avatar
  • 141
0 votes
0 answers
24 views

tmux windows in iTerm2 keep on snapping to 54x31 characters

I am running iTerm2 v3.4.18, connecting to tmux 3.3a on CentOS 7.9. I regularly open new windows in my session using tmux new-window (usually to run vim in it). Frequently (I think more frequently ...
Marcin K's user avatar
  • 146
0 votes
0 answers
121 views

tmux 2.6: why does copying mouse-selected text to macOS clipboard work in iTerm but not in Warp and VS Code?

Server I have tmux running on a remote server with the following environment: DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS" tmux 2.6 This is my .tmux.conf file: # Some tweaks to the status line ...
DeltaIV's user avatar
  • 361
0 votes
0 answers
18 views

Why can't I send S-5 (Shift + 5) key to my tmux pane?

I am trying to send these keys : send C-b S-5 Enter C-b % splits the window horizontally. However it doesn't work when I try to send it. It just prints ;2;53~ into the terminal. How can I make it ...
vdegenne's user avatar
  • 123
0 votes
1 answer
21 views

How to redefine tmux modifier chords to RightAlt + hyphen?

By tmux modifier chords (in the title) I mean the default combination of keys to make tmux listen for an order. The default chords is ctrl+b but because most of the actions I use are d and c I thought ...
vdegenne's user avatar
  • 123
0 votes
0 answers
122 views

alt-shift-arrow shortcuts don't work in tmux anymore after upgrading to Ubuntu 22.04

I have tmux conf file that is using the M-S-Left/Right binding to move left/right in windows. After upgrading to Ubuntu 22.04 these shortcuts has stopped working only when I am connecting over ssh ...
ash's user avatar
  • 16
0 votes
2 answers
372 views

tmux - how to resume a suspended session? No such command like resume-session or something like that

After a tmux session is suspended by ctl+z, is there anyway to resume it? It does not have resume-session or similar command.
Shwe's user avatar
  • 111
1 vote
0 answers
92 views

Junk characters shows up when ssh to a server and execute tmux

When I execute tmux on iTerm on MacOS, it works fine. When I execute tmux on WSL on my Windows PC, it works fine. However, when I ssh into my PC from my Macbook, execute WSL and execute tmux, weird ...
SH Chen's user avatar
  • 11
1 vote
1 answer
116 views

Why does FAQ of tmux say that "Inside tmux TERM must be screen, tmux or similar"?

FAQ of tmux says that "Inside tmux TERM must be screen, tmux or similar". Why is that? How about xterm type terminal description, like xterm-256color? Is there any potential compatibility ...
UpbtEZ's user avatar
  • 41
0 votes
1 answer
600 views

How to pipe vim clipboard through tmux?

I noticed when using VIM through the terminal, I can easily copy a line of text to my system clipboard using the clipboard register like V"+y (that is, then paste that text to some other window ...
flawr's user avatar
  • 769
0 votes
1 answer
844 views

Is it possible to create a new pane with the same connection in tmux?

My setup: Tmux locally, with many connections to different servers in different panes What I want to do: Press a shortcut within one pane, to open a new pane with the same connection already set up. ...
Sikander Lhote's user avatar
1 vote
1 answer
2k views

Enabling seamless mouse scrolling with tmux

Edit: this answer is written with respect to Windows Terminal, but I expect it's an issue for xterm more generally. By default, running tmux in Windows Terminal doesn't show the scroll bar, and doesn'...
1'''s user avatar
  • 229
3 votes
0 answers
86 views

tmux send-keys to vim has no effect if used along with swap-pane

I have a tmux window with 2 panes (pane-ids: 0 and 1). In the pane 0 there is vim launched. I want to fire a combination of two commands from tmux command-prompt: :send-keys -t 0 "iabc" ; ...
bloody's user avatar
  • 131
0 votes
1 answer
487 views

How to have neovim open a new pane in tmux without switching to it?

This command allows for a new pane to open: :silent !tmux split-window -h<CR> But the problem is that my cursor switches to the new pane and I am forced to switch back. How do I turn off the ...
Al-Baraa El-Hag's user avatar
0 votes
1 answer
177 views

Z appears before and after the tmux window name

For some reason, occasionally, in the tabline of the tmux an uppercase Z appears at the right side of the window name and leftside of before window number, so the window name looks like this: Z11:...
JASHEEN JOY's user avatar
-2 votes
1 answer
618 views

Error: Too many arguments (need at most 2) when installing tmux plugins

I'm trying to install the tmux-logging plugin. So I: Cloned tmux-plugins/tmux-logging from Github. Created conf file ~/.tmux.conf. Added run-shell ~/clone/path/logging.tmux to bottom of the config ...
islah dawson's user avatar
0 votes
0 answers
157 views

tmux - Exit copy mode on any key press

Right now, I can only exit scroll / copy-mode when I hit the letter q. I'd like to: Exit copy mode on any keypress The keypress should also be added to my prompt. Here's a demo of the behavior I'd ...
surj's user avatar
  • 208
2 votes
1 answer
482 views

What is the command I can enter in the tmux command bar to show the pane numbers?

I would like to bind # to show panes numbers because # means number. I found out how to bind # from this question but what's the tmux command for showing panes. I tried show pane-numbers from the docs ...
heretoinfinity's user avatar
0 votes
1 answer
99 views

How do I ensure tmux disconnects when session times out, instead of exiting

Compliance requires a 10 minute timeout on ssh sessions. I want to use tmux so I don't lose the stdout from long running processes. [ -n "$PS1" -a -z "$TMUX" ] && exec tmux ...
Jeter-work's user avatar
1 vote
1 answer
102 views

Any way to resume killed tmux server?

I had to kill a tmux process with lots of sessions as tmux wasnt responding. I would have to do quite a bit of manual work in order to start the sessions again. Is there any way to resume the server ...
ps5460's user avatar
  • 61
0 votes
0 answers
412 views

Tmux froze after attaching to session

Today logged on to a HPC facility to check on my tmux sessions. Did a tmux ls and it successfully listed all the sessions. But when I tried to attach to a session, it hung! So I opened another ssh ...
ps5460's user avatar
  • 61
0 votes
0 answers
182 views

tmux copy command on mousedragend1pane - ignore or evaluate selection over so many characters

I wanted to see if i could eliminate an issue i am having with the following command in tmux. bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -se c -i" so ...
Nod's user avatar
  • 27
39 votes
1 answer
3k views

Accidentally deleted log file of running process `python something.py 2>&1 | tee .log`. Is there a way to still save the output on the tmux-pane?

Accidentally deleted log file of running process python something.py 2>&1 | tee .log. The script is running in a tmux pane on zsh. The process is still running but not logging. The output ...
baxbear's user avatar
  • 516
0 votes
1 answer
112 views

How to pass an ALT key press through SSH connection to tmux using suckless simple terminal emulator?

On my local machine I have suckless simple terminal and tmux with the settings like this: bind-key -n M-k next-window where I am binding an action to a key combination Alt + k. It perfectly works on ...
Alexander's user avatar
1 vote
0 answers
472 views

How to run tmux with /tmp full

I'm trying to run tmux on a remote machine. I have tmux installed into a conda environment. When I try to start a new session the usual way I get the error message: error creating /tmp/tmux-23571 (No ...
Jeff Groh's user avatar
2 votes
1 answer
858 views

How to move cursor to a pane by index in a tmux session?

I'm in a tmux session. If I press ctrl+b q, tmux prints a number for each pane. How can I move cursor directly to a pane by these numbers? I don't want to do ctrl+b o or ctrl+b up/down/left/right.
Fajela Tajkiya's user avatar
0 votes
0 answers
103 views

PuTTy interruption triggers the remote server to disable the network for 10-20 minutes

In the last days I had a problem. Randomly when I was connected to my remote Linux Server or when I was connecting for the first time to the server I got the message Network error: Software caused ...
ProgIsMetal's user avatar
1 vote
1 answer
640 views

tmux changes shell prompt

Ubuntu 20.04 (running inside VirtualBox, if that's important.) tmux 3.0a (installed via apt) fish 3.4 (and earlier 3.3) starship.rs 1.1.1 Font: FiraCode Mono I have configured my prompt to look as ...
navneethc's user avatar
  • 113
0 votes
1 answer
457 views

Tmux wait for detach?

I'm looking for a way to wait execution then detach from current tmux session through bash command line. For example currently I'm trying to build a deployment automation command line tool. It should ...
丶 Limeー来夢 丶's user avatar
1 vote
1 answer
355 views

How to start tmux without a status bar, and without modifying the config file?

Ordinarily, I like tmux with its status bar. However in vim with :term tmux I would like it to be started without. Hence, keeping the same config file, can some args could be used so tmux starts ...
the_yellow_logo's user avatar
0 votes
1 answer
228 views

How to kill this C program running inside tmux?

I'm testing a C program which has a section like this: #include <iostream> #include <unistd.h> #define LOOP_MAX 100 int main() { for (int i = 0; i < LOOP_MAX; i++) { printf(&...
Niing's user avatar
  • 168
2 votes
1 answer
2k views

How to automatically rename tmux window to an aliased command

I have set up multiple aliases to ssh to different servers alias sa="ssh user1@server1" alias sb="ssh user2@server2" alias sc="ssh user3@server3" When I run these ...
Abhijeet Viswam's user avatar

1
2 3 4 5
22