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.

Filter by
Sorted by
Tagged with
1
vote
1answer
27 views

tmux ctrl-a stopped working after upgrade to Ubuntu 20.04

I have had my tmux prefix set to c-a for as long as I can remember. Immediately after upgrading to Ubuntu 20.04, ctrl-a no longer works. My terminal (gnome and xterm) simply display ^A. If I change ...
-1
votes
1answer
21 views

How to close tmux session without exiting tmux?

I have several sessions in tmux How to close/kill some of them, without exiting tmux? If I type exit I am not only closing session, but also exiting tmux, which is not applicable.
0
votes
1answer
63 views

Git perminant cache password

Is there a way to use git config --global credential.helper without a timeout? i.e. have it never ask for my password again?
2
votes
2answers
77 views

Terminal messages related to executed command replaced by “tmux” when using Zsh

When I'm inside a running tmux installation and run a command that errors out, sometimes tmux will replace the name of the original command. ie. if test is a directory, then this happens: ...
0
votes
2answers
20 views

How to map Option-Shift-digit keys in zsh using bindkey

I am running zsh inside tmux inside Visual Studio Code integrated terminal. I have a Swedish Keyboard and I am on a Macbook running macOS 10.15.4 Catalina. To get keys like meta-f and meta-d to work ...
1
vote
1answer
15 views

Shift-Tab in tmux

Currently I have this binding in my .tmux.config to go to next window: bind-key -n Tab next-window I would like to make Shift+Tab cycle in the opposite direction. Is this possible? I tried bind-key ...
0
votes
0answers
32 views

tmux: keyboard cursor disappears after leaving scroll mode

I'm using tmux on a CentOS host machine. Whenever I leave scroll mode (Ctrl+B, [ to enter, q to leave), my keyboard cursor disappears and I find it difficult to type. Is it a known bug or are there ...
0
votes
1answer
12 views

How do I close old tmux sessions

My server has many expired tmux sessions running. How can I quickly remove them without killing my active session. One option is to find each session and type tmux kill-session -t N but this would be ...
0
votes
2answers
49 views

Start tmux pane with prompt at the bottom

Is it possible to get tmux to start all of its panes with the prompt at the bottom, instead of at the top? After a pane has been in use for a while the output means that the prompt is at the bottom, ...
2
votes
2answers
62 views

Transpose panes in tmux

I have 6 panes open in a tmux window. Prefix:select-layout tiled arranges them as such: +---------+---------+ | 1 | 2 | +---------+---------+ | 3 | 4 | +---------+---------+ |...
0
votes
1answer
23 views

How can I run programs in tmux panes simultaneously?

I'm trying to make a script that opens up 4 tmux panes, and launch a python program inside of it. I want to do it simultaneously, but I don't know how. I tried tmux new-session "python 'DogeClickBot ...
1
vote
1answer
33 views

Tmux doens't appear to load .bashrc

I'm trying to start using tmux and 'fixing' the fact that tmux doesn't load my .bashrc on startup. I tried to do all fixes like adding source ~/.bashrc to ~/.profile or creating ~/.bash_profile and ...
0
votes
1answer
41 views

How to let tmux know which shell runs in current pane?

I would like my tmux status bar to show what shell is currently running in the active pane if possible. For the record, I use Ubuntu Server 18.04. I've thought about using the variable #{pane_pid} to ...
0
votes
1answer
137 views

tmux 3.1, copy and paste text within a pane with mouse (Linux, konsole)

I compiled tmux 3.1-rc4 from source per instructions in README (because Debian 9's tmux is oldish 2.3): ./configure --prefix=/usr/local/tmux31 make make install I'm using tmux in konsole on Debian 9....
0
votes
1answer
22 views

Binding Alt-Shift-. in tmux

I'm trying to bind some key combinations in tmux, this is what I have in ~/.tmux.conf: bind-key -n 'M-S-.' next-window This doesn't work. How can I bind it? I'm running Konsole in KDE Plasma, ...
0
votes
0answers
37 views

Arrow keys don't work in a remote ssh shell on Juniper Junos switch through tmux - how to fix?

In a Linux system when I connect to a Junos switch via SSH I am unable to use the arrow keys for navigation. Instead I have to use i.e. Ctrl + P instead of the up key. If I just use a pure SSH ...
1
vote
1answer
22 views

Kill all unnamed sessions

Is there a command/plugging that closes (kill-session) all sessions you haven't explicitly named? I need this because I have tmux configured to auto-start on bashrc, and this creates a lot of empty ...
0
votes
5answers
274 views

how to paste into tmux from system clipboard

I'm using tmux with WSL (Ubuntu 18.04) and I can't figure out how to paste into tmux. Pasting works great with the normal terminal by simply right clicking, but this doesn't work in tmux. All the ...
1
vote
2answers
182 views

How can I get tmux to ignore commands when inside a neovim pane?

I'm trying to get my tmux and neovim to work together as seamlessly as possible. There's kinda one issue I'm having with it though. Whenever I'm in a neovim pane within tmux, and I want to split ...
0
votes
1answer
36 views

Why is tmux not recognizing ctrl+shift+arrow through MobaXterm?

I've configured tmux so that ctrl+shift+left/right arrow moves windows left/right in their numerical arrangement. I.e.: # ~/.tmux.conf ... bind-key -n C-S-Left swap-window -t -1 bind-key -n C-S-...
0
votes
1answer
13 views

tmux: refresh the list of windows when the session name is renamed from within the script

In tmux i use ctrl + b,s to see the list of windows in collapsed mode Inside my script which is running in a session will rename the session name in between. I want the renamed session name to be ...
0
votes
0answers
117 views

tmux: ctrl + b, s - which shows the list of windows collapsed, But how to stop wraping when i scroll up or down

In tmux if i want to see the list of all the sessions with the windows list collapses within each session we can do it using ctrl + b,s But when i navigate the session list up or down i want the ...
0
votes
0answers
36 views

Tmux always shows hostname instead of application running

A weird thing is happening. I have been trying to debug it for 2 days with no luck. Nothing relevant around forums as well. I have just set up my wife's machine because I need to work remotely. I ...
0
votes
1answer
61 views

How I create a separate command to copy from my tmux clipboard to my Linux clipboard?

I am trying to emulate the following bindings that work in OSX in Linux: # Copy and paste from system clipboard bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" bind C-v run "...
0
votes
0answers
72 views

Gnome Terminal looking CWD when running custom command (tmux)

I am using Mint, and Nemo. I would like to use the "Open in terminal" option, to open a folder in a terminal, directly from Nemo. In gnome terminal I have it configured to run 'tmux' directly instead ...
0
votes
1answer
54 views

Mac terminal shows messy code when click (or any mouse action) the terminal once there was a tmux opened for this session

The messy codes looks like this: As to reproduction, firstly I ssh a server and open the tmux. then if there is a disconnection, whatever the mouse action (like click or scroll) I made, it would show ...
0
votes
1answer
33 views

Cannot copy after making selection with TMUX

I can make a selection using Ctrl+Space like so: but the problem is that I cannot find the keystroke to copy the selection to the clipboard. I tried this guide but both Ctrl+w and Alt+w did not seem ...
1
vote
1answer
32 views

Mapping key in the tmux command prompt

I would like to map <C-p> to <Up> in the context of the tmux command prompt (the one that is opened by pressing <prefix>:) so that when pressing it, previous executed commands are ...
1
vote
1answer
40 views

Configure TMUX to display something different when control mode is entered

When you hit ctrlb you go into control mode, but sometimes the key stroke is not successful or I forget which mode I am in - is there a way to configure tmux so that it displays something different ...
1
vote
1answer
43 views

add a templated window with panes to existing tmux session

Currently, I have some scripts to open up a new tmux session and populate that session with new windows and panes. This works fine, but sometimes I just want a window or two for monitoring and don't ...
0
votes
1answer
39 views

Tmux: ssh into a server, split window and have it ssh into same server

The way we use tmux is to ssh into a main server, we will then open tmux, and create a new window for each server we ssh into (C-S, prompts for a server and this will then create a new windows and ssh ...
0
votes
0answers
37 views

quit qemu … inside screen inside tmux

I used too many levels of indirection and now I can't get out. I used Tmux from my jump host to get into the dev host. Then I used screen to keep track of what I'm doing on the dev host. Finally I ...
0
votes
2answers
112 views

tmux: disable mouse when entering vim

Where ever I say vim, its vim inside tmux. Current scenario: I have mouse disabled in vimrc and enabled in tmux.conf. Mouse scrolls inside vim, use tmux-mouse to scroll and thus scrolls through ...
0
votes
0answers
37 views

How can I get value of a shell environment in a tmux pane?

Does tmux support a way to get the value of an environment variable for a shell running inside of it? For example, I'd like to get the value of $PATH in each pane.
0
votes
1answer
57 views

Is it possible to work without tmux on current Debian?

One website recommends installing tmux so that the process continues after the user disconnects. I wonder if this can be done without extra dependency.
1
vote
1answer
54 views

Unusual “half border” situation with tmux

My tmux occasionally gets into a weird state where half the border (regardless of orientation, or (tmux) window focus) is bolded, highlighted? See the screenshot below: Weirdly, even after ...
0
votes
1answer
39 views

What is the optimal way to set options in tmux?

This is a follow-up on this question describing inheritance. In my config, copypasted from all sorts of places, most of the settings were set via set -g, except for set -gs escape-time and set -gw ...
0
votes
0answers
16 views

Why does fzf output wrong lines in tmux?

When I do the following... Create a list of random words (randomwordgenerator.com) Copy it into my Windows clipboard Start two instances of my Cygwin minTTY Start tmux in one of them. Run the ...
0
votes
1answer
87 views

How to start urxvt with tmux

I want to run tmux when I open urxvt terminal, I found somewhat functional solution; [[ $TERM = "xterm" ]] && { tmux && exit 0; } *in .bashrc But replacing "xterm" with "urxvt" or "...
1
vote
1answer
418 views

tmux.conf is giving syntax error

My .tmux.conf is # https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf set-option -g status-style bg=colour235,fg=colour136,default # bg=base02, fg=yellow # set window ...
0
votes
1answer
42 views

Unconfigured tmux status bar cut off by two characters

My tmux status bar line appears cut off by two characters, even with nothing in my ~/.tmux.conf. The last two digits of the year are missing. How do you fix this? I've tried different fonts with the ...
0
votes
1answer
46 views

Scroll to previous/next command in tmux window

I know how to scroll ,page up or page down in tmux, but I want command or key combination using which I can directly jump to prev/next bash command in my tmux window. For example, Suppose I did ls -...
1
vote
2answers
70 views

Italics work everywhere except in less(1)

I followed (and modified) this Reddit post to get italics working in Terminal.app and in tmux(1). Italics work The command echo -e "\e[3mfoo\e[23m" outputs foo (with italics) in both a regular ...
0
votes
1answer
62 views

Installing on a remote machine without being root

I mostly work on a linux remote machine for which I have an account but I am not the root user. I have never really understood what that means for my ability to install things. I know that I can pip ...
0
votes
1answer
128 views

Change the tmux status bar background color depending on copy-mode

How do I change the background color of the tmux bar to a different color depending on if the client is in copy-mode (or not)? The goal is to make it extremely clear when the tmux client is in copy-...
1
vote
2answers
175 views

How to expand shell variable in `tmux send-keys`?

I'm trying to script a small utility to more easily start my day with a custom tmux window. My variable doesn't seem to be evaluated before tmux sends it's keys, however: #!/bin/bash MY_WORKSPACE=/...
0
votes
1answer
123 views

tmux: username doesn't update in status bar when set using `set -g status-right`?

I want to display the username in the right-side of the status in tmux and have it update automatically when changing user using e.g. sudo -u. I attempt to do this using #(whoami): set -g status-...
1
vote
1answer
42 views

tmux change status background for session only

I want to create two tmux sessions with different status line background color. In terminal A I do: tmux tmux set status-bg colour166 In terminal B I do: tmux tmux set status-bg colour16 ...
0
votes
0answers
30 views

Signal Overwriting to Provide TMUX support

I'm trying to run a series of scapy requests in a row and then detach it with TMUX. For some reason, when running scapy, some of the signal triggers like typing "Ctrl-C" doesn't work. I already used ...
0
votes
0answers
18 views

Keep scrollback after clear

Basically, the functionality I want to achieve is that I can type clear or press Ctrl-L and have the terminal screen be cleared, but have the contents remain in the tmux scrollback buffer. Right now (...

1
2 3 4 5
19