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.

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

Place tmux configuration in a different folder

I have my tmux configuration in "$DOTFILES"/tmux/tmux.conf and I'd like to know if this is a correct way of using that configuration without copying or symlinking it to the $HOME directory. ...
2
votes
1answer
42 views

Leave tmux text in terminal after exiting tmux. Possible?

I use Putty to connect to Linux (RHEL8). I start tmux (version 2.7) and do some work. Once done, I exit tmux. But the screen text in the tmux session is no longer in the Putty terminal. Is it possible ...
1
vote
1answer
48 views

How to find the escape sequence for `Shift + PageUp`/`Shift + PageDown`?

How can I find the escape sequence for Shift + PageUp/Shift + PageDown? I googled and tried a few suggestions, but what always happens is that the screen scrolls up/down when I press this, or nothing ...
1
vote
2answers
46 views

Tmux sessions get killed on ssh logout

I am using tmux on a remote machine that I access over ssh. For some reason, the tmux sessions do not persist between consecutive ssh login sessions. I do not have this issue while logging into this ...
1
vote
1answer
41 views

Strange uncontrollable scrolling

I woke up this morning to this strangeness. It was not doing this when I left my computer yesterday. I first noticed it when my tmux key bindings did not work. My prefix is Ctrl+Space. Then I noticed ...
5
votes
3answers
321 views

I can't grep tmux ls output when no tmux server is running

I'm trying to find a way to check if tmux server is running or not in order to update my zsh prompt with that information. when tmux server is alive > tmux ls 0: 1 windows (created Sat Jul 10 13:47:...
0
votes
0answers
32 views

launch tmux from crontab with script

I am having trouble launching tmux when executing a script through sudo crontab -e. I am able to get it working ok when using this version: * * * * * tmux new -d -s test_instance However, this method ...
0
votes
0answers
10 views

bind c-w c-w in tmux

I want to bind C-w C-w in tmux to select pane -l. I basically want the same keybinding in tmux as the one in vim with C-w C-w. I've tried binding C-w-w, C-ww, C-w-C-w but tmux keeps complaining about ...
2
votes
1answer
48 views

tmux: Lock session only when using tmux on console, not from a graphical DE

When using tmux on the tty, I want it to automatically lock after some time. This works with the following configuration in ~/.tmux.conf: set -g lock-command vlock set -g lock-after-time 30 # Seconds; ...
1
vote
1answer
26 views

How to ovewrite plugins configuration with user configuration?

I'd like to use tmux-pain-control but I have C-h set to move window left, and since tpm says it needs to go at the very bottom of the configuration file, the plugins always overwrite my configuration. ...
1
vote
1answer
71 views

Switch between light and dark mode in Vim and Tmux with one command?

I want to be able to change my background color mode throughout my tmux session with one command... I have a shell function bgl and bgd to set the background/colorschemes to be light and dark, and ...
0
votes
0answers
8 views

tmuxinator installed but no mux?

I am running Arch (with zsh) and I am trying to follow the Arch Wiki for setting up tmux. I want tmux to start automatically. I've installed tmuxinator as per the instructions, but I get the error: ...
0
votes
0answers
22 views

Tmux shortcut conflict with iTerm

I use tmux on iTerm and I'm having trouble to remap a particular shortcut. On tmux the default prefix M-Left and prefix M-Right are used to resize panes left and right respectively. The thing is iTerm ...
0
votes
1answer
35 views

How to execute a command in tmux and detach using a single line command?

How can I get tmux to execute a command and then detach (That is, automatically in a single line without further input beyond initially starting the session)? I don't know to write sophisticated ...
0
votes
0answers
28 views

Tmux vertical split looks bad

Whenever I try and split my tmux window vertically, the border looks like this whenever I Ctrl+C or if an error occurs. I'm running Kali Linux 2021.1 on VirtualBox. Has anyone encountered this type of ...
0
votes
1answer
50 views

Launch tmux with a command in the background without stopping said command when tmux stop running

So, I want to launch a shell command through tmux, but in the background and detaching from said tmux session...so I do it like so: tmux new-session -A -s myprogramsession \; send -t myprogramsession &...
2
votes
2answers
38 views

What's the expected way to reconnect to shell instantiated tmux sessions that have timed out?

When using tmux sessions that are invoked as part of the shell instantiation, a new session will be created each time a user SSHes into a system. When detached (as in session timeout), the sessions ...
2
votes
0answers
23 views

How can I configure tmux to make only the first window of each session load a login shell (& all other subsequent panes/windows as non-login shells)?

Hopefully the title of this post is descriptive enough. As well-documented in the tmux manuals, tmux launches a login shell every time a new tmux window or pane (split) is launched. Instead, how can I ...
0
votes
0answers
15 views

Tmux pasting letter by letter

When I copy text into Tmux buffer and paste it in the same window, Tmux was pasting it letter by letter making it a 4 minute work. What is the issue?
0
votes
1answer
51 views

Change key bindings in tmux copy mode

I want to change the key binding in tmux copy mode. This is my tmux config: set-window-option -g mode-keys vi So I use the vi keybindings for copy mode. But since I use the colemak keyboard layout ...
0
votes
1answer
28 views

How to reset the current Tmux session?

I sometimes experience a state of tmux, where Prefix-c stops working although Prefix- still works for other commands. Also, in this state, key bindings like bind -T copy-mode-vi y send-keys -X copy-...
0
votes
1answer
61 views

why is shell (new terminal, new tmux panes/windows) slow to load?

When I open a new terminal it takes a couple seconds for the shell to load, when I open a new pane or window in tmux it might even take a second longer. The delay is about 3 seconds. I'm using zsh ...
1
vote
1answer
86 views

Tmux: What is the default format for `tmux ls` and how to check it?

An example output with the default format of "tmux ls" is like this below (for me): $ tmux ls 26: 1 windows (created Fri Apr 23 10:57:23 2021) [90x30] 27: 1 windows (created Sat Apr 24 01:...
0
votes
0answers
32 views

Terminal sessions and docker permission in tmux

I have some basic Linux processes, terminal session, and docker permission problem. It may be a silly question. The situation: I have created a user group and added my user into it to use docker ...
0
votes
1answer
24 views

How to get both the current working directory and the current process in the status line for tmux?

I would like to have two status lines with the first status line showing which directory the window is in and the second one showing which process is running in the window. Is this possible? I use ...
0
votes
0answers
21 views

Reduce overall size of tmux

For various reasons, I'm doing a lot of work these days using the floating software keyboard on an iPad. Part of the time I'm sshing into remote systems, where I naturally run tmux. The various SSH ...
2
votes
1answer
32 views

How to respawn all tmux panes at once

Let's say I am using a tmux window with 4 panes (like the example in this question. Now I change some environment variable and I want the new value to be recognized in all 4 panes. Is there a ...
-1
votes
1answer
30 views

What term types actually work with Tmux and AWS SSM? Split terminals don't show the dividers

I've been battling a pretty annoying issue lately when using AWS Systems Manager (SSM) and Tmux. When I split the terminal, the dividers disappear and the screen gets very whacky. For example, the ...
0
votes
1answer
77 views

TERM=tmux-256color causes “Error opening terminal”

I want to enable italics in tmux (inside iTerm2 on macOS Big Sur 11.3). I have achieved this by setting this in .tmux.conf set -g default-terminal "tmux-256color" And I have installed ...
1
vote
1answer
25 views

Tmux change to the next session conf file

I want to change my tmux.conf file to change to the next and previous session with cntrl+shift+0 and cntrl+shift+9 respectively. But i don't know how to get the next and previous session target. This ...
0
votes
0answers
11 views

tmux full screen moved towards left after using stty

I was working with stty inside a Debian system. I don't understand how stty works, but the command I had to run was: stty raw -echo then when I press ctrl C to close it, tmux got moved to the left. ...
0
votes
1answer
25 views

Start process and access the “shell” at a later time

I have a remote testing machine which is experiencing some failures. What I would like to do is trigger a gdb process upon failure on the remote machine, and then ssh into the remote machine and ...
0
votes
2answers
40 views

cycle tmux windows of the same name

this question (to my knowledge) has not been asked before, yet would benefit anyone that uses tmux! I tried searching github too for plugins etc, but no luck yet. What I'd like to achieve: Cycle ...
0
votes
0answers
195 views

Neovim changes color inside tmux

I've tried to add these two lines to .tmux.conf set -g default-terminal "xterm-256color" set-option -ga terminal-...
1
vote
1answer
15 views

How do I set a previous paste buffer in tmux back to the active buffer?

Is it possible to get a previous tmux paste buffer back to the active buffer (the one that's pasted when pressing Prefix+])? E.g. I have (0) buffer2: 21:56: bar (1) buffer1: 21:55: foo in my paste ...
0
votes
0answers
49 views

separate stderrs of different pipe commands to different tmux/screen/ncurses/… windows?

I have a pipe which contains multiple commands which tend to write to stderr. Naturally, the output will be interleaved. I wonder if there is a utility that neatly separates the stderrs of the ...
1
vote
0answers
42 views

tmux doesn't inherit PATH variable when inside docker?

I am trying to run tmux inside docker container. It runs but looses variables like PATH, for example inside container: root@sparkmaster:/opt/bitnami/spark# ls /opt/bitnami/python/bin/python /opt/...
2
votes
1answer
35 views

Tmux black text on black background bottom line

I am loosing my mind. Which of these settings is causing black on black text when I enter tmux's "command mode" (normally obtained with Crtl-B-:? I tried playing with the settings of ...
2
votes
1answer
24 views

Why is `split-window` needed to get a shell in window 0 when sourcing commands?

I restore common setups for my project with something equivalent to this: setup_file=myproj.tmux tmux new-session "tmux source-file $setup_file" I would normally assume that starting a new ...
1
vote
0answers
37 views

tmux ctrl-p now scroll now working

I am using ubuntu in WSL2 and Windows terminal preview, with tmux in daily usage. The ctrl-p key in copy-mode works normally for months, but today after a sudden windows hangs, I restart the Windows ...
0
votes
0answers
29 views

Switching to another vertically split window with a mouse click won't work in vim inside a tmux session depending on where you click

I'm using vim with two windows vertically split inside a tmux session. When I try to move to the right window by clicking inside the window, tmux will respond as if the column size is smaller than the ...
3
votes
2answers
296 views

Is it possible to move .tmux.conf to ~/.config folder?

I want to move the .tmux.conf file from ~ to ./config/..., but I'm not sure about whether this would lead to tmux would not know about this location. So where are the alternative location(s) where ...
0
votes
1answer
46 views

How can I make tmux use “C-b C-b C-b” to get into the 3rd nested tmux session?

In tmux I get into the 2nd nested session by using C-b C-b (Ctrl+b twice). But if I have a 3rd nested session, I can't use C-b C-b C-b to get to the 3rd nested session. Somehow if I spam C-b, ...
1
vote
0answers
71 views

Tmux won't start under WSL2

Tmux fails to start with error creating /run/user/$(id -u)/tmux-1000 (No such file or directory) But starts fine under root
1
vote
1answer
28 views

Rename TMUX window based on custom function in ZSH

I have a custom function in my ~/.zshrc file: function getCustomWindowName { # runs 'sed' on 'pwd' to get special dir name # and set it to $workspace if $workspace is valid; then echo $...
0
votes
1answer
49 views

how to fix tmux keybinding? (after upgrading to 3.0a)

I was previously using tmux in Kubuntu 19.10 (where my keybinding worked) and just upgraded to Kubuntu 20.04 (where the binding no longer works). I don't know the previous tmux version but currently ...
0
votes
0answers
45 views

tmux does not pass Ctrl-; and similar keybindings to Emacs; TTY, XTerm, and LXTerminal all do

This question is different from https://emacs.stackexchange.com/q/1020, and the beautiful answer https://emacs.stackexchange.com/a/13957, which is about xterm not "passing" certain key ...
0
votes
0answers
19 views

How can a tmux user migrate to GNU screen?

I have been using tmux for a few years and the keybinding have become a habit but I have to work on a system where tmux is not available but GNU screen is. How can I configure the .screenrc so that ...
0
votes
0answers
30 views

How to prevent tmux from creating new session automatically?

I use tmux-continuum and tmux-resurrect to save and restore tmux sessions. Say I restart my computer and open iTerm, I run tmux, then it will create a numbered session automatically (please see the ...
0
votes
0answers
43 views

Tmux length of a portion of status-right

I want to store the length of the appended portion of status-right on the Status Line which I have set to be of nonconstant length; specifically I want the length of what comes after "set -ag ...

1
2 3 4 5
24