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.
1,121 questions
5
votes
2
answers
4k
views
automatically split windows at tmux startup
I have a question similar to this guy https://stackoverflow.com/questions/5609192/how-to-set-up-tmux-so-that-it-starts-up-with-specified-windows-opened but more specific.
I want to do this in a ...
1
vote
2
answers
1k
views
how to identify the connected client pid/tty from inside tmux
I'm using a long running tmux session on my workstation. Sometimes I have to connect to this workstation by ssh from my laptop. I take my ssh private key stored on a YubiKey with me. Means the Yubikey ...
4
votes
2
answers
7k
views
Why doesn’t the Vim color scheme work in tmux?
I am using konsole-4.14.3, tmux-2.6, vim-7.4.1938 and my shell is bash. Outside tmux, my vim color scheme works properly. However, inside tmux the colors are completely different. I kind of know what ...
1
vote
2
answers
4k
views
tmux create panes programmatically
I want to create tmux panes programmatically. e.g. I have a list of commands to execute, and I'll create a shell script that will invoke a tmux command along with the commands to execute in each pane, ...
48
votes
8
answers
91k
views
tmux/screen alternative for powershell
Is there an alternative to tmux/screen that would work on Windows with Powershell? I'm aware of Powerscreen, but it seems dead for a long time. Cygwin wouldn't work with Powershell, would it? Console2 ...
2
votes
0
answers
48
views
SSH 'No route to host' only within tmux session
I began exploring tmux yesterday, and arrived at a very strange problem: From inside a tmux session, I can SSH into any server and my router – but not into a local server. Connecting from outside a ...
2
votes
0
answers
31
views
Detected terminal width always smaller when first opening terminal compared to opening new tmux tabs
I have a few 'cosmetic' lines in my .bashrc file, which rely on detecting the current width (i.e. number of columns) on the terminal in order to work properly.
E.g., this one prints a nice 'banner' at ...
434
votes
7
answers
339k
views
Restore tmux session after reboot
Is there any way to save a tmux session? In other words, if I reboot the computer, will I always lose the sessions?
1
vote
4
answers
9k
views
Copy text from remote via iTerm2 with Tmux to OS X clipboard
I'd tried using iTerm2 beta Build 1.0.0.20120724 and using bind C-y run-shell "reattach-to-user-namespace -l zsh -c 'tmux show-buffer | pbcopy'" in .tmux.conf but none works.
The solutions I found ...
9
votes
3
answers
3k
views
ssh-agent key timeout with screen or tmux on bastion host
Normally I have ssh-agent running, I ssh to my bastion host then open a tmux session and connect to other boxes through that. Key forwarding works for any sessions that I open from that point forward....
1
vote
1
answer
6k
views
How to open multiple terminals for a single SSH session in MobaXTerm?
I have the following issue:
I would like to open multiple terminals for the same SSH user session on a remote host via MobaXTerm. Not different sessions, the same user login session (kind of like ...
2
votes
3
answers
3k
views
iTerm2 outputs random characters when the remote tmux exits abnormally
I use tmux on my remote terminal. I found that when the remote terminal was disconnected abnormally (e.g., I just closed my laptop without exiting remote terminal normally), my terminal on iTerm will ...
0
votes
0
answers
56
views
vim-tmux-navigator doesn't seem to work in a docker container
EDIT
Seems like there is a question as to why I have this setup. Per company policy I'm developing on a remote machine. The machine is Amazon Linux 2, which is not upgradable. We will not be switching ...
13
votes
2
answers
10k
views
Display unicode in tmux?
This is urxvt without tmux
This is urxvt with tmux and utf8 not enabled in the config
This is urxvt with tmux and utf8 enabled in the config
How can I make tmux act consistent with the initial result?
1
vote
2
answers
133
views
How can I have a remote SSH-like session that doesn't close due to connection failure?
I have a laptop from which I SSH into a remote machine every day. When the connection drops (e.g., because I'm taking my laptop from work to home and logging back on), all of my SSH sessions die. I ...