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
1
vote
1answer
23 views

tmux - Ctrl+Colon keybinding not working

I am trying to use bind-key -T root C-: command-prompt, but it is not working. However, bind-key -T root M-: command-prompt works. How can I use Ctrl+:, in other words Ctrl+Shift+; as a keybinding in ...
0
votes
1answer
15 views

tmux - output all keybindings to a file

I have checked Write all tmux scrollback to a file and came up with the following command to view scrollback buffer is vscode. bind-key -T root C-E run-shell "tmux capture-pane -pS -50000 > /...
1
vote
1answer
25 views

Tmux behaves differently and C-a + C-a prints “^A” instead of jumping to beginning of line

I have the following entries in my ~/.tmux.conf # remap prefix from 'C-b' to 'C-a' unbind C-b set-option -g prefix C-a bind-key C-a send-prefix which usually have been sufficient to use tmux with ...
0
votes
1answer
18 views

tmux prefix keyboard shortcut version 3.0a

Please help for tmux version 3.0a How do I enter these settings? set -g prefix M-x bind M-x send-prefix I can not find the file named .tmux.conf
0
votes
1answer
37 views

tmux prefix keyboard shortcut

How do I change the tmux prefix keyboard shortcut from ctrl+B to space+B while, by default, the space button has a command?
0
votes
1answer
18 views

split-window: command not found. How to reassign / remap tmux keys to split window?

For a long time I've used tmux for split horizontal and vertical windows I found the default key mappings cumbersome and so I remapped split vertical and split horizontal from being the quotes (")...
0
votes
0answers
9 views

My tmux is no longer ordering sessions by name, how can I make it order sessions by name again when I hit <c-b> s?

I've been looking online for the longest time for an answer and couldn't find anything. Right now no matter what I name my sessions, they just remain where they are instead of ordering themselves ...
0
votes
0answers
15 views

Killed tmux pane continue running foreground script

A little curiosity. A vanilla tmux session (stock config) had 1 pane. The pane was executing the following command: sleep 1d; shutdown -h now. 1h into the execution of the "sleep" command, ...
0
votes
0answers
12 views

Tmux: sources bashrc 3× when new window opened

I have some update logic for some of the local package managers (npm, pip) that sniffs around for any changes to dependency files in my drive stem. This is great, for my purposes, when it happens ...
2
votes
0answers
18 views

Unable to display Bash prompt variable in tmux with same decoration as in bash

I am curious about why my bash variable PS1 is not the same in tmux as in bash. Here is my PS1 variable PS1={debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[06;32m\] \w\[\033[...
0
votes
0answers
18 views

tmux status bar not displaying output of bash script

I've been struggling for a little while trying to figure out how to get my tmux status line to display the output of a bash script I've written to get my current song playing from Apple Music. This ...
8
votes
0answers
101 views

Shell dropping every other character of input

I manage software on a bunch of RHEL 6.10 VMs, typically either as a service account or root using sudo -i. Periodically, my shell starts dropping every other character. For example, if I type cd /usr/...
0
votes
1answer
15 views

select tmux session when create window

tmux will create new window under current session(with bind-key c). I want to select session when create window. This script works fine when run it directly, but fails when called from tmux using bind ...
1
vote
1answer
29 views

Explanation of `history -c;` in the following well known snippet for preserving bash history

I am using the following code in my .bashrc file for keeping everything in history when I have multiple tmux panes open: # Avoid duplicates HISTCONTROL=ignoredups:erasedups # When the shell exits, ...
1
vote
1answer
36 views

tmux: Find all sessions that only have dead panes

I want to find the sessions which only have dead panes, to then kill them. How do I do this?
0
votes
1answer
70 views

Vim Mode copy-paste not working on Tmux

I am new at using Tmux. I have seen that it is quite difficult to copy-paste inside Tmux. So I searched for an easier method. Some sites suggested that I should use vim mode as I am quite familiar ...
-3
votes
1answer
36 views

How to import tmux setting for vim to normal vim?

When using tmux my color/font/syntax highliting in VIM gets improved. How can i import that red/yellow/white combination of color in .vimrc file. I want that. VIM ON TMUX: AND THIS IS MY NORMAL UGLY ...
0
votes
1answer
28 views

How to set zsh shell title without executing command substitutions twice?

My zsh config contains setopt PROMPT_SUBST. When I use command substitution in a shell command, I see it is executed twice. This could cause slowdowns or even bugs in my scripting. % setopt ...
0
votes
1answer
25 views

Does tmux have a mouse mode variable?

As per the tmux man page, tmux contains many variables (e.g. window_zoomed_flag) that can be conditionally displayed in the status bar (e.g. #{window_zoomed_flag,ON,OFF}). I am looking for a variable /...
1
vote
1answer
47 views

Tmux: How can I create “session > window > pane” and run a command in the pane?

I'd like to do the next from a bash script: Create a session named "my_session". Create a window named "my_window" inside of that session. Create two pans named "my_pan1"...
0
votes
1answer
25 views

Set default shell to tmux with options

Following one of the comments of one of the responses to this question I've set my default shell to /usr/bin/tmux, which works perfectly fine. But now I'd like if I could assign all logins to one ...
2
votes
2answers
86 views

How to configure the buffer used by vi-mode bash for yank and paste?

tldr: Does anyone know how to configure what buffer is used by vi-mode bash for yanking (copying) and pasting? Long version: I have set editing-mode vi in my .inputrc, so that programs using the ...
0
votes
1answer
30 views

TMUX_AUTOSTART=true closes my terminal at first

i added the tmux plugin to my .zshrc file and when i try to make it run on startup with TMUX_AUTOSTART=true it'll just shows the terminal window and disappears under a second. then i open it again and ...
0
votes
1answer
24 views

Tmux copy and scroll iterm

How can I copy from a large file by scrolling. I am unable to start the selection. I was able to start copy mode by ctrl + B [ But I am unable to begin the selection . I used space still no luck.I ...
0
votes
3answers
68 views

Creating vimrc breaks vim

I'm currently logged into a server via ssh with ssh -Y and running a tmux session. If I start vim and run :colorscheme elflord the color scheme is changed. (Although the colors are not exactly what I ...
0
votes
0answers
12 views

Byobu with tmux: every new tab starts in the root (/) directory

I use byobu 5.77 with tmux 1.8-5 on Ubuntu 14.04. Whenever I open a new tab with F2, the starting directory is "/". Any ideas how to change it, so that the starting directory would be the ...
0
votes
0answers
18 views

How to set the TERM variable in byobu (tmux) startup files with named sessions?

I use byobu 5.77 with tmux 1.8-5 on Ubuntu 14.04. When I start a new byobu instance, my TERM variable is not set. Thus, I added export TERM=screen-256color to ~/.byoburc. It works fine. But when I ...
0
votes
1answer
27 views

How to bind tmux window selection to f1-f12 keys?

At the moment I move between tmux windows using C-B N where N is the number of the window I want. Is there a way to map the f keys so that I can just press f1 to activate the 1st window, f2 to ...
1
vote
1answer
30 views

Keep a Python script with parameters running, restart if crashed, in a tmux session

I have a Python script which runs in multiple instances with different parameters, for instance: python3 proc.py -s -v -l proc_one.log python3 proc.py -c -v -l proc_two.log I usually start these in ...
0
votes
1answer
18 views

Tmux: How can I use the identifiers in the paste buffer list to paste a specific buffer?

I use the C-b = command in Tmux to select a specific paste buffer from a list. I wonder how I can use the identifiers (0),...,(9) and (M-a),...,(M-z) to directly paste specified buffer? Indeed, C-b ] ...
0
votes
1answer
26 views

TMUX strange behavior

Overview I created three VMs using Redhat 7.6, VMs are deployed using KVM. CNODE1 = 192.168.100.150 CNODE2 = 192.168.100.151 STORAGE= 192.168.100.200 HOST = RHELHOST Now because i have a habit of ...
-1
votes
1answer
25 views

Unintended exit of tmux session when doing Ctrl-r to search history on zsh

I'm tmux with zsh, and I'm having issues with Ctrl+r. Searching back through old commands works fine but the moment nothing else is found, the tmux session exits. Any way to avoid the session exiting? ...
0
votes
1answer
39 views

Error - Terminal automatically and randomly duplicates last character on space

My Setup Mac OS runs terminal with $TERM = xterm-256color; tmux with $TERM = xterm-256color When I ssh into an AWS EC2 inside that tmux session on my MacOS, $TERM is also xterm-256color Weird Behavior ...
1
vote
0answers
70 views

WSL2 & tmux: Pasting Windows clipboard with right click

I am trying to get "normal" copy-and-paste behavior in tmux running under WSL2. I managed to enable copying from tmux to the clipboard using the plugin tmux-yank, which internally uses clip....
0
votes
1answer
29 views

Iterm2: tmux support not working with windows WSL (tmux -cc)

I use iterm2 on my local MacOS and tmux V3.0a on the target (Windows 10 WSL). When I init a connection with "tmux -CC" I can see something that looks like control traffic. I'd expect that ...
0
votes
0answers
11 views

auto opening multiple screens in tmux with commands upon system startup

I´ve tried to find the best way to auto-open a bunch of cryptobots (named hummingbot) when starting my system with a script, and my research led me to tmux. The hummingbot is called via bin/...
0
votes
0answers
65 views

Using st's scrollback patch with dvtm or tmux

When running suckless' st terminal with the scrollback patch in conjunction with dvtm or tmux, the scrollback (patch) only shows blank lines (empty black space). This doesn't seem to be a problem ...
1
vote
1answer
280 views

Suckless' DWM Swallow Patch + Tmux

Is it possible to swallow a terminal running Tmux? I can't seem to get the patch working unless Tmux is disabled. I've tried with "Screen" on st and there were no issues :/. Thanks! https://dwm....
0
votes
1answer
28 views

Converting colo schemes to different applications

Do you know about Project Dracula? https://draculatheme.com/ Dracula is a project where a initially zsh color theme is ported to over 100 different applications. I love this project, i think it's a ...
1
vote
0answers
20 views

tmux logging for all windows and all panes

tldr;: I’m trying to figure out how to start logging in tmux and have it do it for every new window I create and for every pane within those windows. I just got into tmux and was looking for a way to ...
0
votes
2answers
53 views

How do I correctly (re)set $DISPLAY?

I connect from a Windows PC to a Linux PC with ssh using MobaXTerm. Within the ssh session, I have a tmux session with a few windows and panes. The ssh session will typically disconnect after a few ...
0
votes
1answer
20 views

Displaying time elapsed since the last change of the content of a pane?

Are there any tmux plugins/snippets that display the time elapsed since the last moment the screen (or the content of each pane) changed? It would be particularly helpful for monitoring streams of ...
1
vote
1answer
82 views

tmux copy is slow on macOS

I am having this issue for about 2 years now (since I started to use tmux in Summer 2018) and I have not found a solution to this problem. Any help is greatly appreciated! The copy functionality of ...
0
votes
0answers
20 views

Vim and Tmux doens't fit with each other

My colors breaks on tmux and i tried almost everything i could find on the web, NONE of them should actualy solve this problem. This is my colors inside tmux im using the default vim theme but all ...
2
votes
0answers
48 views

Moving cursor within TMUX on MAC

When I launch tmux from the terminal, and attempt to move the cursor between words on one terminal line, the shortcuts that work in a default terminal don't appear to apply. e.g. esc + b does move the ...
0
votes
1answer
39 views

How can I configure tmux's copy-mode-vi so that the m key moves to the end of line (equivalent to $)

The QA how to set shortcut for 'copy mode'? explains how to set a shortcut to tmux copy mode. My question is different, I want to change a shortcut within copy mode, in particular copy-mode-vi. This ...
1
vote
0answers
18 views

tmux/bash start tmux only if normal shell (intellij)

I have a little problem, I let tmux start in the .bashrc but I only want it to start, if the shell is a normal shell inside my terminal emulator. Now most IDEs have a terminal tab where they launch a ...
0
votes
1answer
18 views

Bright Color Escape Sequences not saved in Tmux capture-pane?

I'm trying to use tmux to create a pty for me that I can read the contents of, including color. I'm using tmux capture-pane -e -t paneName and tmux save-buffer tmuxbuffer.txt and I get normal colors, ...
1
vote
1answer
23 views

Ask the key binding problem between xterm bash and tmux

To get TAB and ctrl-i to do different things. I added the following configuration to my xterm and bash configuration files, and everything worked fine XTerm.vt100.translations: #override \n\ Ctrl ...
0
votes
0answers
25 views

Tmux maps 2 Different Keys as the Same One Even If Unbound

I just configured my key bind for the previous-window command in Tmux to Ctrl-[. When I did this, I noticed that my Escape assumed the same behavior as Ctrl-[ command. In other words, the Escape key ...

1
2 3 4 5
22