Questions tagged [tmux]
tmux is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.
1,376 questions
0
votes
0
answers
27
views
How do I move tmux command prompt `:` to the center of the message line?
As title. In short, I would like to have : shown in the middle of the message line when I press the default keybind <prefix>: for opening the command prompt.
I have tried my best finding the ...
1
vote
1
answer
51
views
SSH freezes on login after server banner
Trying to login to my local server with user1, the shell freezes after the login banner:
Linux server 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64
The programs included ...
1
vote
1
answer
39
views
tmux: show status bar of each session when choosing
In tmux, the command to select a session opens a chooser like this (not sure from the man page exactly what to call it):
(0) + controller 1 windows
(1) + model: 2 windows
(2) + view: 4 windows
(...
0
votes
1
answer
26
views
tmux quoting problem within display-menu
This command works as expected if I run it in the tmux command line:
list-panes -a -F "pane ID: #{p3:pane_id} TTY: #{p11:pane_tty}"
Output:
pane ID: %1 TTY: /dev/pts/35
pane ID: %2 TTY:...
2
votes
1
answer
31
views
tmux - when splitting, changes simlinked path to unsimlinked path
I have the following binding to allow me to do a vertical split in tmux
bind v split-window -h -c "#{pane_current_path}"
This lets me open a new split, and it defaults to the same folder as ...
0
votes
1
answer
25
views
changing to other sessions in tmux without hot keys
recently I've learned this new part of Linux known as tmux, and my overall thought: a absolute beauty, tmux has helped me more and more as I get deeper into Linux and as I make more projects, but for ...
0
votes
1
answer
184
views
`Sessions should be nested with care. Unset $TMUX to force.` using Byobu and Fish load on boot
Since upgrading my server to Ubuntu 24.04 I keep being instantly logged out. When I connect with SSH, it just states [exited]. There seems to be no way of logging into my account anymore.
It is a ...
0
votes
1
answer
23
views
Shortcut to toggle input in a pane when synchronize-panes is on in a tmux window
Sometimes when I concurrently type commands to multiple servers using synchronize-panes, I need to exclude one or two of them.
So I'd like to have a shortcut to toggle input in a pane when synchronize-...
0
votes
0
answers
91
views
Why is tmux picking up sh as $SHELL, instead of my normal login shell bash?
I use the z command (Jump Around) quite a lot, but I noticed that it stopped working under tmux. I cannot understand which change caused it, but I know what is happening: something related to tmux ...
0
votes
0
answers
23
views
Tmux using several prefixes independetly [duplicate]
I use Tmux and Neovim
I want to make it so my panes would split using <C-w> + s / <C-w> + v in a vim-like manner
I can achieve it with prefix, however it's already mapped to <M-a>, ...
2
votes
0
answers
61
views
tmux disconnects when disconnecting from ssh in WSL
I have a windows server running WSL, such that when I connect via SSH (openssh) i'm automatically logged into wsl (which I've set up from ssh configs in windows).
In WSL I tried using tmux but after ...
0
votes
0
answers
24
views
bsub & tmux : does not always reconnect to same session
I have created a shortcut in my KDE environment that performs the following command :
bsub -q gui konsole -e tmux -Asmain
It creates a konsole and automatically open a tmux session named main .
The ...
0
votes
1
answer
99
views
How to ensure terminal emulator exits when killing a tmux session?
I have the code below in my ~/.zshrc to create or attach to a tmux session named after the current terminal emulator. It works as intended in most cases, but I'm encountering an issue when I attach to ...
0
votes
0
answers
17
views
Different scrollback states of a single tmux session in two terminals?
I would like to attach to the same tmux session in two different terminals but have different scrollback states. For example in terminal 1 I would like to see the live output, while in terminal 2 I ...
4
votes
1
answer
245
views
Entering a tmux shell renders escape characters
Setting the shell in tmux with set -g default-shell /usr/bin/bash resolves the issue, it seems that nix's default bash shell is not built with readline support as per @Stéphane Chazelas answer.
I ...