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,378 questions
2
votes
1
answer
41
views
Make tmux echo bells in the current window and also print a message for bells in other windows
I am using tmux 3.4 on Ubuntu noble 24.04.3. I would like tmux to handle bells as follows:
If a bell occurs in the current window, echo it and don't do anything else.
If a bell occurs in a window ...
1
vote
1
answer
58
views
How to run tmux session under network namespace
If there are no sessions (eg tmux a returns "no sessions") a call to start tmux under a namespace (eg sudo ip netns exec ns1 tmux new -s test) will have the shells within (even newly spawned ...
0
votes
1
answer
84
views
nix command not found in tmux panes and windows
I use nix and home manager, zsh and tmux. My problem is that in tmux splits the nix command does not exist. I tried setting default shell in tmux to /bin/zsh -l sourcing files etc, I notice the PATH ...
0
votes
2
answers
69
views
Starting tmux from outside home directory does not source .bash_improvements
I'm running Ubuntu server (version 24.04.2 LTS). I'm quite happy with it. Sometimes I need longrunning processes, therefore I start them in a tmux session. But I have a small issue when I run tmux. In ...
0
votes
0
answers
38
views
can't navigate to previous command when a console app is daemonized with tmux and systemd
I recently moved from running minecraft bedrock server inside PM2 to systemd. If I put the executable inside ExecStart normally, I can't enter commands to the mcbe console. When I search for solution, ...
1
vote
1
answer
148
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
votes
1
answer
75
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:...
0
votes
1
answer
44
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
62
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
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>, ...
0
votes
0
answers
48
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 ...
4
votes
1
answer
308
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 ...
0
votes
0
answers
81
views
Different filesystem for the same mount point /tmp , when accessed via ssh , on wsl
I have a Debian system running on wsl
> wsl --version
WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore ...
0
votes
1
answer
2k
views
tmux: list sessions by most recently attached
To work with a large number of projects, where each project has several work areas (editing, building, testing), it's convenient to keep 20 or more tmux sessions open. But when switching quickly ...
0
votes
0
answers
35
views
Tmux bind-key second command stops working for no reason
I have a tmux key binding to move windows left or right as follows:
# window movement (swap)
bind-key P swap-window -t -1 \; select-window -t -1
bind-key N swap-window -t +1 \; select-window -t +1
As ...
0
votes
0
answers
410
views
How to set up tmux themes properly on macOS terminal?
I tried to set up tmux with the macOS terminal by importing my .tmux.conf file from my Ubuntu 22.04 machine and the theme is not being applied properly. Regardless of what theme I choose, it displays ...
1
vote
1
answer
612
views
Accidentally detached all tmux sessions but the processes are still running
I have no idea what happened here but i deleted /tmp/ and now all my tmux sessions are gone, but for some weird reason the processes that used to be attached to these sessions are still running in the ...
1
vote
0
answers
145
views
SSHing into remote machine from terminal doesn't ask for password, but through VS Code integrated terminal, it does, Why?
I'm working on a project where I have to run a python script which will open a tmux session with multiple windows, in each one ssh into a different remote machine, and run another python script. I'm ...
0
votes
1
answer
176
views
tmux scrolling enabling fails in msys2
I recently started using tmux (in addition to screen), both in a Linux environment and in msys2 (which is also new to me and for which I cannot install screen).
Very similar to screen, starting tmux ...
0
votes
1
answer
493
views
get access to console of application that is auto started
I have my "c" application which uses a lot of printf to display the necessary information. Application has started automatically at boot time (using init.d or systemd). How I can access to ...
0
votes
1
answer
53
views
Move/rebind tmux keybinding to a different key without spelling it out
There is a number of default keybindings in tmux that create menus of various sorts. Apparently, these keybindings open-code the entire menu they are displaying:
bind-key -T prefix < ...
0
votes
1
answer
289
views
TERM ANSI escape sequences compatibility between xterm and screen although infocmp does not say so
I am making an script in zsh on mac that uses tmux and after the amazing https://unix.stackexchange.com/users/22565/st%c3%a9phane-chazelas answer, I found out that when I use tmux, it uses a different ...
0
votes
1
answer
81
views
"tmx" (tmux) erroneously connects to existing session because of prefix matching
I used "tmx" to create a tmux session called "foos" and now I want to create a new session called "foo", where the latter is a prefix of the former. But tmux connects me ...
0
votes
1
answer
1k
views
Is it possible to change the color of the tmux status bar in command mode?
When I type Prefix-: to start typing a command, tmux changes the color of the status bar to dark yellow. A similar effect happens if I push Prefix-, to change the name of a window.
Is it possible to ...
0
votes
0
answers
646
views
How do I fix Tmux status bar?
I tried a new theme plugin I found from gihub: tmux-tokyo-night. I didn't like it, so I removed the plugin (confirmed with my .tmux.conf file that it was removed) but the broken status bar won't go ...