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
0 votes
1 answer
14 views

How to pass an ALT key press through SSH connection to tmux using suckless simple terminal emulator?

On my local machine I have suckless simple terminal and tmux with the settings like this: bind-key -n M-k next-window where I am binding an action to a key combination Alt + k. It perfectly works on ...
user avatar
0 votes
0 answers
30 views

How to run tmux with /tmp full

I'm trying to run tmux on a remote machine. I have tmux installed into a conda environment. When I try to start a new session the usual way I get the error message: error creating /tmp/tmux-23571 (No ...
user avatar
1 vote
1 answer
38 views

How to move cursor to a pane by index in a tmux session?

I'm in a tmux session. If I press ctrl+b q, tmux prints a number for each pane. How can I move cursor directly to a pane by these numbers? I don't want to do ctrl+b o or ctrl+b up/down/left/right.
user avatar
0 votes
0 answers
28 views

PuTTy interruption triggers the remote server to disable the network for 10-20 minutes

In the last days I had a problem. Randomly when I was connected to my remote Linux Server or when I was connecting for the first time to the server I got the message Network error: Software caused ...
user avatar
1 vote
1 answer
43 views

tmux changes shell prompt

Ubuntu 20.04 (running inside VirtualBox, if that's important.) tmux 3.0a (installed via apt) fish 3.4 (and earlier 3.3) starship.rs 1.1.1 Font: FiraCode Mono I have configured my prompt to look as ...
user avatar
  • 113
0 votes
1 answer
35 views

Tmux wait for detach?

I'm looking for a way to wait execution then detach from current tmux session through bash command line. For example currently I'm trying to build a deployment automation command line tool. It should ...
user avatar
  • 11
1 vote
1 answer
63 views

How to start tmux without a status bar, and without modifying the config file?

Ordinarily, I like tmux with its status bar. However in vim with :term tmux I would like it to be started without. Hence, keeping the same config file, can some args could be used so tmux starts ...
user avatar
0 votes
1 answer
35 views

How to kill this C program running inside tmux?

I'm testing a C program which has a section like this: #include <iostream> #include <unistd.h> #define LOOP_MAX 100 int main() { for (int i = 0; i < LOOP_MAX; i++) { printf(&...
user avatar
  • 157
0 votes
1 answer
148 views

How to automatically rename tmux window to an aliased command

I have set up multiple aliases to ssh to different servers alias sa="ssh user1@server1" alias sb="ssh user2@server2" alias sc="ssh user3@server3" When I run these ...
user avatar
0 votes
0 answers
36 views

How to run script in specific directory in tmux?

I'm trying to execute a script that is in my path to run my application. It should run two java backends (don't ask) and have one window where I will run the front-end after java finished booting. #!/...
user avatar
  • 2,553
0 votes
0 answers
20 views

tmux - accidentally switched to a different view, get back to normal session

This is kind of a silly question, but I was running a session on tmux, and I accidentally activated a different view (I seem to understand it's a window view). Anyway, the session (pipeline_00) is ...
user avatar
  • 101
0 votes
0 answers
34 views

How to write selection to file in Tmux copy mode?

In Tmux copy-mode-vi, I want to bind the y key to copy the selected text but also write that selected text to a local file, say ~/.tmux_clipboard. Right now I have this binding bind-key -T copy-mode-...
user avatar
0 votes
0 answers
13 views

I can't use arrow with Tmux?

I have add some feature to tmux as in the code but the last edit (which is in last 4 lines) I can't move to panes using Alt + arrows # Some tweaks to the status line set -g status-right "%H:%M&...
user avatar
  • 1
1 vote
1 answer
49 views

Tmux Copy Mode: Show Current Line As Ascending Value From Top of Buffer

In this image I'm in tmux copy mode and at the very bottom of scroll the buffer. The line indicator on the top right shows 0/31827. How can I show the current line number as a value that ascends from ...
user avatar
1 vote
1 answer
36 views

Cannot pgrep the pid of tmux with -x option on Debian(bullseye)

I'm writing a script in which a function needs to retrieve the pid of tmux server. tmux_pid=$(pgrep tmux) However the script name contains tmux, e.g. tmux-launcher, when running it, pgrep returns two ...
user avatar
  • 113
0 votes
0 answers
63 views

How to have new tmux tabs open with same conda environment?

I'm using tmux while connected to my server, where I am primarily doing work using Anaconda. I have a number of conda environments, but usually only work on one at a time. Unfortunately, each time I ...
user avatar
  • 1
1 vote
2 answers
199 views

How to do a full length vertical split in tmux

I usually have two horizontal panes as such: +–––––––––+–––––––––+ | | | | | | +–––––––––+–––––––––+ | | | | ...
user avatar
1 vote
0 answers
8 views

Indicator for "sending keyboard input to all splits" in byobu

Is there a way to present current tmux options in the status bar? More specifically, is there a way to indicate whether the synchronize-panes option is set, and the keyboard input is sent to all "...
user avatar
  • 277
0 votes
0 answers
28 views

How to make active pane in tmux larger?

I am on Mac and using Tmux. Is there a plugin that makes a Tmux pane larger while it is activated? There is a vim plugin that resizes the splits, making the active one larger when selected? I have ...
user avatar
0 votes
0 answers
22 views

Powerline tmux default configuration

I have installed powerline in tmux via powerline-config tmux setup It looks great, but I've looked through the docs and I don't see defined what means what. Most of it is obvious, but there are three ...
user avatar
  • 101
0 votes
0 answers
88 views

Tmux returns error and error code 1 is displayed in terminal prompt

When I run tmux my terminal prompt displays an error code, and I'm not sure why. I don't really know how to see where that error code is printed out, and I don't even really know where to begin. It's ...
user avatar
  • 113
0 votes
0 answers
9 views

Restoring previously working selection and scrolling with mouse

Using tmux 2.3 I have set -g mouse on in my config. This allows me to use the mouse to switch panes and windows with the mouse and use the mouse wheel to enter edit mode and scroll through a pane. ...
user avatar
  • 121
1 vote
1 answer
36 views

How to select a tmux session in detached mode for commands like split-pane?

I want to write a startup script that launches multiple tmux sessions in detached mode. Minimal example: #!/bin/bash tmux new-session -d -s "session-a" -n "window-a1" tmux new-...
user avatar
  • 113
0 votes
0 answers
22 views

Tmux change cli command output to violet color instead of white

As you can see in the screenshot, what is outputted in white in zsh is outputted in violet/purple in tmux. I have tried enabling true color support for tmux and as you can see it work. Tmux shell ...
user avatar
0 votes
0 answers
84 views

Tmux on start and with previous command

I can easily start tmux on my shell on start, but let's assume: Process A => launch a new terminal (process B) with a command Process B => just start tmux without launching the command passed ...
user avatar
2 votes
1 answer
27 views

Can I add a newline into a command from bash's history?

I often stumble across this problem: I type a command that has multiple lines for readability. This is an example: echo "Hello. This is an example of a very long command which is divided into ...
user avatar
  • 1,261
0 votes
0 answers
19 views

Why last package version (tmux) with yum isn't shown?

I use NAME="Oracle Linux Server" VERSION="7.9" with yum --version 3.4.3 Installed: rpm-4.11.3-45.el7.x86_64 at 2021-01-14 07:37 Built : None at 2020-10-01 06:03 Committed: ...
user avatar
  • 1
0 votes
1 answer
173 views

How to copy with the mouse from tmux to the OSX clipboard

I connect to a remote server with VS Code through ssh, using https://code.visualstudio.com/docs/remote/ssh, so I'm not using iTerm. I open a Terminal window in VS code. Using the mouse to copy text to ...
user avatar
  • 317
0 votes
1 answer
96 views

Pipe command's output to different tmux pane

Imagine I have a command that produces lots of output and a return code, and I need to run it frequently (e.g. every minute) in a loop. Is it possible to send the output of the command to a different ...
user avatar
  • 1,261
0 votes
1 answer
159 views

Alt + arrow keys executing odd actions in vim, only in tmux

I recently noticed Alt (meta) + arrow keys in my vim executes certain actions, but only if in tmux for some reason. Alt+Left: Deletes 3 lines. Equivalent to vim d3d but works in INSERT mode. Alt+...
user avatar
  • 1
0 votes
0 answers
26 views

Reloading .tmux.conf via shell script fails to complete

In MacOS, I have a shell script that makes some changes to my tmux config file, then reloads it (by running tmux source-file). Usually, it completes successfully, but sometimes (I estimate about 5%) ...
user avatar
  • 101
0 votes
1 answer
138 views

Run 8 commands in parallel in equalized tmux panes

I have a monitoring utility that consists of 8 individual utilities, to monitor multiple aspects of a system. All of them kind of work like htop, in that they rewrite the screen periodically instead ...
user avatar
0 votes
0 answers
40 views

Tmux theme only applied at the bottom of the terminal

I installed a theme plugin in my tmux and started my tmux session again. Only to find it as shown in the image below: As seen, the solarized theme that I'm trying to apply, can only be seen at the ...
user avatar
0 votes
0 answers
33 views

TMux copy to clipboard?

I'm using tmux in a remote shell in PuTTY on Windows. Having two panes, and mouse on (set mouse on), so I can scroll nicely in both panes. Holding down the Shift key, and selecting a text copies into ...
user avatar
  • 253
0 votes
1 answer
141 views

How to switch between panes in modern Windows Terminal like tmux

ITNOA If I use ctrl+shift+p, I can see some shortcut for creating panes in Windows Terminal, for example alt+shift+- is for creating horizontal pane and alt+shift+plus is for creating vertical panes. ...
user avatar
4 votes
1 answer
358 views

How can you assign keys in tmux without Ctrl-b first?

In tmux, we use the trigger key Ctrl-b followed by an action key. However, I would like to assign direct keys in my .tmux.conf and was hoping this is possible. I would like to assign F7 (without the ...
user avatar
  • 355
0 votes
1 answer
134 views

Why does tmux show `binfmt-bypass` as the window name in sessions when nvim is open?

I'm running Ubuntu 20.04, and I have tmux open. The window names in tmux usually display the name of the running program in the active pane. Mostly this works as expected -- eg bash and python show up ...
user avatar
  • 101
0 votes
0 answers
38 views

iTerm tmux session unable to click in w3m browser

After running tmux -CC within iTerm2, I launch w3m. Usually I am able to use the mouse to interact by double clicking on links. I cannot however double click when running tmux. I have tried clicking ...
user avatar
1 vote
1 answer
84 views

Run external command in inputrc mapping, without modifying current line

I have mapped C-h, C-j, C-k, C-m key combinations in tmux.conf to switch between panes, but really miss the C-h combination for backspace when using bash / zsh. I have enabled vi mode in ~/.inputrc ...
user avatar
1 vote
0 answers
32 views

How to bind alt + n to cursor down in tmux?

I am trying to bind alt + n to send-keys -X cursor down, but it doesn't work. This is my code right now: bind -T copy-mode M-n send-keys -X cursor-down bind -T copy-mode M-p send-keys -X cursor-up ...
user avatar
2 votes
2 answers
92 views

Does tmux have anything like vim's marks?

Let's say I'm tailing some logs from a running app and I expect some long output to come soon that I would like to scroll to the top of once it's done. Does tmux have anything that could help me here? ...
user avatar
  • 1,191
0 votes
2 answers
44 views

Tmux: Map one default mapping to do nothing?

I map C-b C-u to previous-window and C-b C-p to next-window without problem. BUT, the original C-b C-n is still doing next-window. My config: unbind n unbind C-n the C-b n is disabled without problem,...
user avatar
  • 157
2 votes
1 answer
34 views

Debain system Shortcut inside SH Script

So I have a basic SH script that lanuches and splits TMUX. I would just like the script to run either or Super+T or ALT-F10 after finishing all of the necessary steps for tmux. I have installed and ...
user avatar
0 votes
0 answers
193 views

How to change the working directory of all the panes in a tmux window

In using tmux, I generally like to keep each window dedicated to a specific service that I'm working on. I try to minimize the number of windows that I have open and so I don't want to just keep a ...
user avatar
0 votes
1 answer
126 views

Scroll pages with "screen" in a putty window

I am connected with Windows putty to a Linux computer, and inside this SSH session, I use screen (similar tu tmux). I know that, in order to scroll with PG-UP / PG-DOWN, one has to do this before: ...
user avatar
  • 1,696
0 votes
0 answers
28 views

Move through windows in tmux

I want to move through windows in tmux with Alt + h to move left and Alt + l to move right. I want to make sure I've written this correctly. And what is the -r option? # Move through windows tmux bind-...
user avatar
0 votes
0 answers
118 views

shell for tmux on mac: tmux command need "tmux" before everything

when entering tmux, my default shell becomes Oh My Zsh which is fine. However as a result before every command for tmux I have to type "tmux" but every single tutorial i am viewing doesn't ...
user avatar
0 votes
0 answers
38 views

Why isn't Esc working in vim in tmux in Mintty?

I sometimes use Mintty from Windows to ssh to a server, where I use vim (neovim) inside tmux. I have used this setup for years without issue. However, recently I have had the odd issue that pushing ...
user avatar
  • 111
0 votes
1 answer
63 views

Cannot copy text in tmux mode in CentOS 7

Do you know how I can copy text in tmux mode in CentOS 7? When I select the text, it shows as yellow but cannot copy it. This is what I have in tmux.conf: If I press shift while selecting, it will ...
user avatar
0 votes
0 answers
350 views

Kitty fails to send ctrl-b sequence to tmux through ssh

Using: Local machine 1: OSX 10.15.7 kitty terminal - https://sw.kovidgoyal.net/kitty/ - version 0.15.1 zsh Kitty config- font_size 16.0 allow_remote_control yes map cmd+1 goto_tab 1 map cmd+2 ...
user avatar
  • 101

1
2 3 4 5
21