Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-1
votes
1answer
16 views

How to copy/paste text using the mouse from one tmux instance in one terminal emulator to another tmux instance in a different terminal emulator?

How can I copy some text using the mouse, between two terminal emulator instances, each running its own instance of tmux? I've read this: How to copy and paste with a mouse with tmux And various ...
0
votes
1answer
24 views

tmux: is it possible to dim the inactive window and on the same time have transparent background?

is it possible to dim the inactive tmux panes and also still have transparent background in the terminal? the part of the tmux.conf which dims the inactive looks like that ## FROM https://...
1
vote
1answer
41 views

Infinite-loop shell script in tmux status bar

I wrote a bash script to display cmus status in tmux status bar. It has worked fine for a while, but recently after a fresh reinstall of Debian 9 tmux displays <'path/cmus-status.sh' not ready> ...
0
votes
0answers
7 views

`screen` not creating log file when run inside tmux/byobu?

When we use screen command with -L option, it creates log files of the session with names like screelog.0, screenlog.1 and so on. These log files are created inside the directory in which the screen ...
1
vote
0answers
16 views

How to uninstall, remove, or disable powerline for tmux?

Running Ubuntu 18. I configured tmux with powerlines and would like to reset back to the default look. I have tried removing all the things I remember related to powerline, the pip install, plugin ...
0
votes
1answer
28 views

gpg: signing failed: Operation cancelled under tmux?

I have found a strange error. It is OK when I commit using gpg with git under bash or zsh. git commit -S -m "xxx" However when I commit it under tmux, I got: gpg: signing failed: Operation ...
0
votes
1answer
18 views

How can start multiple tmux autoscript?

This is in my TmuxHome.sh Script with I can start One Only Tmux Session: # tmux Start Script Need To Work!! if which tmux >/dev/null 2>&1; then #if not inside a tmux session, and ...
0
votes
1answer
27 views

Run command in copy mode

For my current project, most work happens in tmux on a remote system. Sometimes, I would like to copy text from the remote system to my local machine (i.e. for sending email). My current workflow is ...
0
votes
1answer
21 views

Tmux: automatically run commands in the event of creating new pane or window

I have fixed a, b, c sessions - their name won't be changed and already auto created when I start tmux. I'd like to auto run a command in the event of creating new pane or new window in a session ...
0
votes
1answer
35 views

Can attaching to tmux sessions be password protected, similar to gnu screen?

I've been using gnu screen for many years, and I've been looking into switching to tmux. I can't figure out how to make tmux require a password when attaching to a session. In gnu screen, I use ...
1
vote
1answer
51 views

Bash script to open tmux but can't see username

I have a bash script that starts a tmux session with some monitoring tools, and have a cronjob that runs it on startup; however, I can't see the usual prefix to my commands, and I can't use any arrow ...
0
votes
1answer
26 views

How to run tmux cmds in nodejs

Is there any way to run tmux cmds like tmux kill-server, tmuxinator attach etc. through nodejs. I have searched online but not able to find anything useful which can aid me to remove my error. I was ...
10
votes
1answer
389 views

Prevent Logoff from Killing tmux Session

I have noticed that a logoff (log out) from my X user session will kill any tmux session I have initiated, even sessions I had run with sudo tmux and similar commands. I am sure that this formerly did ...
0
votes
1answer
31 views

How to attach to an active session with a specific window and run a cronjob?

On my development setup I have an active session with multiple windows, I'd like to spit out the cronjob's output to this active session into a specific window . I wrote in the crontab the command: /...
1
vote
0answers
52 views

How can I use a mac to scroll and copy-paste text on the tmux via ssh?

I always use macos Terminal.app to control my ubuntu servers via ssh, and I need to use tmux to keep my program running in background. Now, I know how to configure the tmux (on my ubuntu servers) to ...
1
vote
1answer
35 views

Copy text in remote tmux/irrsi to local machine

I have my IRC setup done in the following way: my VPS runs tmux, which runs an instance of irssi. I connect to my VPS using mosh, which is SSH over UDP. Now, when someone posts a link in an IRC ...
0
votes
1answer
39 views

How can I leave the tmux server running after the last session exists?

I'm trying to run tmux as a systemd user service ~/.config/systemd/user/tmux.service. When I start the service with systemd --user start tmux and then run tmux from a terminal, it seems to correctly ...
1
vote
1answer
33 views

How can I kill tmux windows from the window list?

When I press Ctrl+b, W, tmux shows the list of all current windows and their panes. How can I kill a window and its panes from within this list view?
0
votes
1answer
38 views

How can I list tmux windows in collapsed view by default?

When I press Ctrl+b, W, tmux shows the list of all current windows and their panes as a tree. The problem is that this is very long when using many windows. I can collapse a window in the list by ...
2
votes
1answer
61 views

TMUX + Rails = stty: 'standard input': unable to perform all requested operations

I have a fairly large Rails project that always returns the following after every command in the Rails console: stty: 'standard input': unable to perform all requested operations This only happens ...
1
vote
1answer
31 views

Finding a tmux window where a pts belong

For some reason I seem to collect a lot of tmux windows (and browser tabs, but that's a different story). I have a process that is in the background of one of the windows, and I would like to find ...
0
votes
1answer
22 views

Tmux not loading statusbar config till reload

I have a tmux config with the line bind r source-file ~/.tmux.conf where ~/.tmux.conf is my current tmux config. This works fine and has a status bar that looks like: [ cpStudy ] * 96% ( ...
1
vote
1answer
64 views

Ubuntu 18 Tmux 2.6-3 copy paste functionality with xclip non functional

I recently did a fresh Ubuntu 18 install and copied over my home directory from my previous Ubuntu 16 setup. However this seems to have broken the copy paste functionality I had previously with xclip (...
1
vote
3answers
91 views

Screen and kitty what should $TERM be?

Why does tmux report $TERM=screen-256color Normally kitty reports $TERM=xterm-kitty Which should I use if I run tmux inside kitty? Obviously kitty provides advanced functionality and that makes ...
0
votes
1answer
21 views

tmux send-keys confirm ssh tunnel is closed (after sending multiple commands to the remote host) before proceeding

there is an answer here about tmux using wait-for and LocalCommand to wait until the SSH connection is established before continuing, but I needed a way to have tmux wait for the ssh session to be ...
0
votes
1answer
33 views

Tmux window switch and SSH - reattach display

I am attaching through ssh -Y to my server, and rotating with tmux to a preexisting window. The problem is, if I just export DISPLAY=:<port ssh used originally for X> evince #for example On ...
2
votes
1answer
23 views

Does tmux support session initialization?

Tmux supports creating sessions, and with the -A flag attaching to session if they already exist rather than creating them. But, if they don't exist and tmux has to create them, what's the best way to ...
-1
votes
1answer
28 views

How do run my script inside tmux on server startup

I have a bot which I run inside tmux session to keep it alive always. Sometimes, I server reboots and if I am not home or with the internet, my bot remains offline. I can add a cron job to start the ...
1
vote
0answers
24 views

Shared and non-shared history together

Using zsh (in tmux), I would like to access the session history with Up and the shared history with Shift+Up (or similar). Does anybody know how this could be achieved?
0
votes
1answer
32 views

How to background a process when tmux prefix is z?

Usually I would background the foreground process using ctrl-z, but when running in tmux with the prefix key bound to z, then obviously ctrl-z just invokes tmux. Likewise if I try to escape the ctrl-z ...
0
votes
1answer
33 views

How to start tmux upon running terminal?

I'm using xfce, and want to create a shortcut Super + t for starting up terminal with tmux. What command should I put it to execute upon shortcut? I tried st tmux attach , however it fails when there ...
3
votes
0answers
26 views

Can I ask Tmux to immediately exit copy mode and paste the content when you yank?

I am using vi mode for my tmux. I mapped 'enter copy mode' to M-0. This is really convenient: just my left thumb on left-Alt and my right ring finger on 0 after that , i navigate with vi keys. When I ...
1
vote
1answer
65 views

xst terminal: normal clipboard disabled when in tmux

When use xst not in tmux, clipboard somehow share the same with the system/os/or-whatever-idk, but I can copy from firefox/chrome and paste into xst. But with tmux I can't do that, tmux only allow ...
2
votes
2answers
457 views

tmux: Select and copy pane text with mouse

My Problem When I select text from tmux using the mouse, the block selection spans to neighbouring panes. What Have I Tried set -g mouse on Hitting option while selecting (Mac's equivalent for alt) ...
0
votes
1answer
173 views

tmux: Switch windows and panes with a single key

My Problem tmux key bindings require two separate key hits to enter a command. The first is called a prefix, and set to control+a. The second key performs the actual command, for example: c create ...
0
votes
0answers
50 views

Tmux 2.8: only enable mouse to resize pane

I search in previous version of tmux that seems has this feature, but on newer version, devs removed it with only mouse [on|off] or I didnt find it properly. How to enable mouse for resize pane only? ...
0
votes
1answer
49 views

Tmux: disable preview window

When you press prefix + s or prefix + w, tmux displays preview window for windows. How to disable this feature completely. I find it pretty annoying.
0
votes
0answers
45 views

Tmux: terminal color is different inside tmux

OS: Arch latest zsh: 5.6.2.1 tmux: 2.8.1 TERM: screen-256color Color of vim both in terminal st-terminal and tmux set correctly. But zsh's color - shell's color changed. e.g: do ls in terminal ...
0
votes
0answers
18 views

tmux inconsistencies with canceling something

When I do :ls, I have to use enter or ctrl-c to close. When I want to cancel the prompt of something like :letmeout, I have to use ctrl-c to cancel. This led me to simply use ctrl-c to get out of ...
0
votes
1answer
42 views

Bash interactive shell hangs when Tmux is suspended if it was automatically started by Bash startup file

When I manually start Tmux by issuing tmux from my Bash interactive shell I can later suspend Tmux with CTRL-BZ without problems. Pressing this key combination brings me back to the parent process, i....
2
votes
2answers
199 views

New tmux session only sources .zshrc, and doesn't pick up the $PATH defined in .profile

After reading multiple questions on this topic I still feel lost. I read suggestions that one should set the environment variables including $PATH in .profile instead of specifically in .bashrc or ....
0
votes
1answer
28 views

tmux report error on vi copy mode?

i have been using the same config for a long time bind-key -t vi-copy 'v' begin-selection Recently I upgraded to Ubuntu 18.04 LTS. I start to receive this kind of error: /home/user/.tmux.conf:13: ...
1
vote
2answers
258 views

Terminal colors look wrong when using tmux with termite

The terminal i'm using is termite, and it is very good, but i'm having a problem with vim colorschemes and some colors in the terminal itself too when using tmux. It happens as follows: As you can ...
0
votes
1answer
50 views

Tmux binding error `returned 127` in cygwin

I want to use a clipboard manager in tmux. It is the CopyQ, but it does not matter, I guess. In ~/.tmux.conf I set following binding: set-window-option -g mode-keys vi bind C-y run 'out=`tmux save-...
0
votes
1answer
124 views

Tmux: change border's color of previews when choosing sessions

When I create several sessions and use prefix + s to change between them, the lower half of the screen shows a preview of each window, with its index and name. How can I change the border's color of ...
0
votes
1answer
32 views

Tmux: resize in detach mode result in strange panes' size

I have a tmux session created in detach mode and I ran a series tmux commands in a script to ceate panes and resize panes but when trying to attach to the session, panes are in different size, if in ...
1
vote
1answer
33 views

Why do num key slash, asterisk, minus, and plus not work in > tmux 2.1?

On some of my newer Ubuntus, the number keypad /, *, -, and + keys don't work. If I quit tmux and just use a regular ol' Putty SSH session, they do. Ubuntu 14 tmux 1.8 works Ubuntu 16 tmux 2.1 works ...
0
votes
0answers
25 views

tmux root binding not working

bind-key -T prefix j select-pane -t :.+1 works when I type Ctrl+a, j bind-key -T root C-j select-pane -t :.+1 does nothing when I type Ctrl+j. I'...
-1
votes
1answer
473 views

How to install tmux on Centos?

When I execute yum install tmux, it gives me an error: Setting up Install Process No package tmux available. Error: Nothing to do Any idea on how to solve this issue?
0
votes
1answer
35 views

Foreground, background color of scroll position indicator

I was trying to change the foreground and background color of the scroll position indicator in tmux but didn't find the option name in the manuals. Was wondering if there is a setting to change that. ...