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
1answer
21 views

Why ZSH behaves differently in Tmux when I press CTRL or ALT before any other keys

ZSH normally works fine except when I use it in Tmux. When I press ALT or CTRL before any other keys like Alt + Left Arrow (to jump by words) or Alt + Backspace (to delete a word), it suddenly changes ...
1
vote
0answers
26 views

`tmux list` sets my shell in an unresponsive state

I'm running bash on an ubuntu machine, and trying to list active tmux sessions I tried executing tmux list (a non-existant tmux command) that puts my shell in some kind of unresponsive state. What ...
0
votes
1answer
23 views

Cycling through splits and maintaining fullscren in tmux with neovim navigation

I use tmux with Neovim as a software developer (on Debian 10). I'm having the following two issues and after much investigating still can't find a solution that suits me: I would like to cycle ...
0
votes
0answers
19 views

Pressing q does not exit in less running in tmux

How to exit file reading mode (in less) in Linux terminal? To quit less, type q. I am using tmux on remotely connected node using ssh. I am connecting into host as follows: ssh -xt4C username@host. ...
0
votes
0answers
11 views

When enter pressed lines keeps repeating itsef in less running in tmux

I am using tmux on remotely connected node using ssh. I am connecting into host as follows: ssh -xt4C username@host. When I press enter to do scroll down, lines 59-101/3163 3% keeps repeating itself ...
1
vote
1answer
16 views

Reload tmux server to add new groups

I created some tmux session a while a ago, since then I've been added to some unix groups. As the tmux server has started before I was added into the groups, all shell I create in tmux won't be part ...
0
votes
0answers
11 views

How to stop SSH pipe from dying due to inactivity in Konsole

I have a super efficient Konsole profile setup just the way I like it with my prefered shortcuts. Lately I have been spending a lot of time in the terminal connected to a remote server through SSH. I ...
0
votes
0answers
22 views

Tmux stuck in selection mode

I'm using zsh with tmux and when I try to copy large number of text (i.e. 10K) with tmux, the selection mode seem to get stuck and not go back to the prompt. Small amount text works great. There is a ...
0
votes
1answer
13 views

How to close inline help in tmux?

In tmux, Ctrl+b + ? will open a view with inline help. How can I close this view and get back to my session?
1
vote
0answers
31 views

Running multiple commands in multi-window tmux session as a shell script

I need to run three applications (flask app, node.js app, react.js app) at the same time. So, I wrote the following bash script: #!/bin/bash # A Simple Shell Script To run license plate model server ...
0
votes
0answers
20 views

Why does this tmux service fail to start via systemd?

$ sudo systemctl status ccrsTmux ● ccrsTmux.service - Start CCRS in the ccrs-session tmux session Loaded: loaded (/nix/store/a9vvi2mlmszwnj7ahpzwln5ab639n3n2-unit-ccrsTmux.service/ccrsTmux....
0
votes
0answers
18 views

Copy to clipboard with tmux + iterm2 + OSX without reattach-to-user-namespace

When I'm in the tmux' (emacs) copy mode, I want a regular copy (e.g., M-w) to copy to my OSX clipboard. I have seen several posts that explain how to make this work without reattach-to-user-namespace, ...
1
vote
1answer
77 views

FFmpeg command runs In Terminal, but not in script with TMux

The first time I ran the FFmpeg command I got error: “Output file #0 does not contain any stream” …but I could see the Tux session and connect to it. Then added the full path to the FFmpeg ...
1
vote
0answers
27 views

using tmux and screen via ssh [duplicate]

I am using tmux on a local laptop to connect to a server via SSH in a pane. On that server, I am running several computations via screen. The issue is that the server's screen key bindings such as C-A ...
0
votes
0answers
35 views

tmux scroll without rebinding mouse click?

I used set -g mouse on bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'" ...
0
votes
1answer
39 views

How to scroll two panes in sync in tmux?

In my scenario I have two panes side by side: (pane 1) | (pane 2) and I want to scroll in both of them in sync, how can that be achieved? I have tried setting synchronize-panes which will sync normal ...
1
vote
0answers
21 views

Why tmux does not respect terminal color settings?

I'm using alacritty terminal emulator and ZSH shell. When I customize my alacritty config so it contains light background and specific color scheme, it works allright. But as soon as I create tmux ...
0
votes
0answers
32 views

mintty/tmux paste from clipboard on windows

I use cygwin/mintty/tmux3.0a and and suddenly pasting with the mouse includes trailing whitespace. This often has the effect of executing whatever I pasted on the command line == BAD. I did a long ...
0
votes
0answers
26 views

How do I prevent bash shells from sharing history in tmux?

I have been using zsh for a while, and I know zsh supports setopt nosharehistory for preventing the sharing of history between running shells (I believe that is what that setting does). Is there ...
0
votes
1answer
240 views

Mouse scrolling in MobaXterm tmux

On my Linux computer I have the following .tmux.conf file: # Enable mouse mode (tmux 2.1 and above) set -g mouse on This allows me to scroll up and down using the mouse wheel while in a tmux session. ...
0
votes
0answers
29 views

Windows 10 CMD/PowerShell window cannot move or resize after ssh/tmux?

I have Windows 10 (v1803) and I need to ssh Linux and then tmux in CMD or PowerShell window. The window cannot be resized or moved after the screen restored from screen sleep. How to resolve the issue?...
0
votes
1answer
29 views

What does ctrl+arrow do in vim within tmux, and how do I skip words?

I am used to using vim in a normal gnome-terminal, in which by default ctrl+arrow can skip words. However, if I am using vim in tmux, these key combinations would delete lines of words. Question: ...
0
votes
0answers
19 views

Binding Tmux swap-pane

I would like to bind Ctrl+Shift + (h,j,k,l) to swap panes, but tmux seems to not accept these bindings. How would one achieve these bindings? Thank you for the help!
0
votes
0answers
15 views

Scrolling down in nvim, inside tmux running on cmder creates empty lines and random characters

I'm currently running neovim inside tmux, running on cmder and every time I start scrolling down with my keyboard on a file with text, empty lines are inserted within each line. A lot of the times ...
0
votes
1answer
11 views

Resizing tmux isn't working while in AWS SSM. How to troubleshoot?

When starting an instance in AWS SSM, it seems like Tmux is not embracing the full window, as shown in the screenshot below: Usually this happens when there's another client attached to this session, ...
0
votes
1answer
15 views

How to configure Tmux so that windows monitored for activity and/or silent are marked in the status bar?

In the status bar of Tmux, the last window is marked with -, a window which is monitored for activity and has had an activity is marked with #, analog for inactivity with ~. But I would like to know ...
1
vote
1answer
52 views

Multiline if else tmux

I'm using tmux 3.1c. I want to know if I can do something like if-shell <condition> { # true cmd1 cmd2 } { # false cmd1 cmd2 } Or should I separate the code in two if-...
0
votes
1answer
672 views

PowerLevel10K prompt not getting correctly formatted in tmux

I am using oh-my-zsh shell and powerlevel10k theme on my system. I recently installed tmux. But for some reason the prompt of tmux is not getting correctly formatted. Here is my .tmux.conf file: set -...
0
votes
1answer
153 views

Failing commands kill the current tmux pane

I recently changed linux distros and the default behavior of tmux changed: previously, failing commands had no effect on the current pane/window. Now every command that exits with a status other than ...
2
votes
0answers
36 views

Terminal not cleaning lines

I'm working on a remote Ubuntu 20.10 machine [linux version 5.8.0-1011-gcp] in Google Cloud, built from a basic Ubuntu image, using gnu bash 5.0.17(1)-release and xterm 353, and the terminal isn't ...
0
votes
1answer
62 views

Possible to hide the status bar for ONE particular tmux session (but not the others)?

I use a couple cheap fire tablets I have left over + ssh + tmux to run as an always up to date visual look at my taskwarrior and timewarrior status. it works great! but because of the limited screen ...
0
votes
1answer
55 views

Long tmux window names in msys2 of full executable path

When I run an executable inside of tmux in msys2 on Windows, the window name give the full executable name and they can sometimes get very long. For example my current tab name is: C:\\Users\\me\\...
1
vote
1answer
22 views

iTerm terminal emulation is weird

Recently, I switched to iTerm because a lot of people recommends it, but it behaves quite weirdly. It does not automatically enter "alternate screen mode" if less/man/similar commands are ...
0
votes
0answers
52 views

Unable to open a new pane or window in the current directory in tmux

While using tmux version 3.1c, whenever I try to split the current pane into a new pane or a new window I get the following error shell-init: error retrieving current directory: getcwd: cannot access ...
1
vote
0answers
107 views

tmux client-detached hook does not execute when terminal emulator closes

I have the following in my .tmux.conf file (and nothing else). set-hook -g 'client-detached' 'run "echo DETACH >> .tmux.log"' set-hook -g 'client-attached' 'run "echo ATTACH >&...
1
vote
1answer
87 views

Tmux: How to move current pane to far Left/Right/Up/Down like in Vim

In Vim, pressing Ctrl-w followed by H, J, K, or L, moves the current window to the far left/down/up/right, without messing up any of the other windows' ordering. I'd like to implement this same ...
1
vote
1answer
28 views

How to create a tmux session with two windows with specific name and run specific scripts in each window?

I want to create a session with the name - general And I want to have two windows in it - win1 win2 And I need to run script1 in win1 and script2 in win2 Currently I have written the script like - ...
0
votes
1answer
73 views

Even though I have enabled scrolling through mouse - setw -g mouse on, mouse scrolling is not working in tmux

I have the below configuration in my ~/.tmux.conf 1 unbind -a 2 3 set -g prefix C-a 4 unbind C-b 5 bind C-a send-prefix 6 7 set-option -g status-left-length 100 8 setw -g mouse on ...
0
votes
1answer
110 views

Tab key is splitting the screen horizontally in tmux even when there is no key binding for tab key

I have the below configuration in my ~/.tmux.conf 1 unbind -a 2 3 set -g prefix C-a 4 unbind C-b 5 bind C-a send-prefix 6 7 set-option -g status-left-length 100 8 setw -g mouse on ...
0
votes
0answers
14 views

tmux horizontal split expanding the view vertically

I wanted to split the window horizontally (so I get two half width rectangles) , and use them on the same terminal (meaning stretcthing the vertical view?) meaning a horizontal split sharing the same ...
0
votes
0answers
27 views

tmux - how to bind to C-`

hello and thanks for helping a newbie. this is my first time posting in this forum; if i posted in the wrong area or made some other newbie mistake, please let know. tmux is fantastic. i need to bind ...
0
votes
1answer
23 views

TMUX displays data in a chaotic view

I was running one command in my tmux session on one of the tabs when I decided to interrupt it. After I stopped it, the data in my tab started to display in a chaotic view. Only in this tab. The ...
0
votes
0answers
10 views

Moving in a maximized pane in tmux

Once you are running tmux with several panes and you want to maximize one pane for better vision you usually do Ctrl-B Z. However when I do this, even I get the maximized pane I can not move up the ...
0
votes
1answer
30 views

How to use tmux between local laptop and remote server

I am currently in a VPN using RStudio which is installed on my local desktop to do some analysis. However, to do analysis, I extract data from my database which is installed on a remote server. What I ...
1
vote
1answer
114 views

Tmux bind alt+arrowkey to resize pane

I can't seem to get Alt + arrow key to bind to resize my panes on tmux. My .tmux.conf # Set window titles set-window-option -g automatic-rename on set-option -g set-titles on # Start windows number @...
1
vote
2answers
1k views

-bash: append_path: command not found when open tmux

When I open the tmux, the following errors are shown inside tmux -bash: append_path: command not found -bash: append_path: command not found -bash: append_path: command not found ~/ $ Setup: tmux 3....
0
votes
2answers
72 views

Scroll with Copy on Tmux 2.3 on Kitty on Windows

I know I can use shift and mark to copy. But, I cannnot mouse scroll inside tmux when I do that. Also when i mark text in tmux normally also, I cant scroll. How do I achieve mouse scroll with marking?...
1
vote
0answers
115 views

Executing script only on terminal startup with tmux

I have configured my Gnome terminal on Linux Mint 18.3 to always start tmux by default by adding a couple of lines to my ~/.bashrc. This works extremely well, except that I also run another script ...
0
votes
0answers
34 views

How to reposition terminal prompt, without changing scrollback?

I have read several posts explaining how to move the zsh cursor in the terminal using tput cup or by repeatedly printing empty lines (e.g. Can I have the terminal prompt at the vertical middle of a ...
0
votes
0answers
87 views

How to save tmux session on suspend and shutdown?

I can manually save when in the tmux window by issuing ctrl+b,s (using tmux ressurect extension) How could I additionally trigger the saving on suspend and shutdown? This question offers some ideas ...

1
2 3 4 5
21