Stack Exchange Network

Stack Exchange network consists of 175 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
vote
1answer
146 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
246 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
146 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
2answers
75 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
68 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
2k 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
127 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. ...
1
vote
1answer
847 views

Exit tmux but stay in terminal

How can I exit a Tmux session but at the same time still able to stay in the terminal window? in other words, when I exit the session I get the terminal prompt. The problem is when I exit a Tumax ...
4
votes
1answer
386 views

A status bar at bottom of terminal in place of PS1

It occurred to me that when I'm doing stuff in the terminal my PS1 is repeated several times for each command. My PS1 includes CWD and git branch so it can get reasonably long. Is there a way I can ...
2
votes
1answer
158 views

Start shell with tmux and attach only to a session if it is unattached

I am currently starting tmux when opening my shell, which the following config for my shell [[ $TMUX == "" ]] && tmux new-session Is there any way to start my shell and attach tmux to the (...
1
vote
1answer
76 views

ssh into server from desktop & run program X, later ssh into server from laptop & interact with X [duplicate]

I'm sure this is a very basic question. I assume tmux could facilitate this, but I'm not sure of the exact steps. My use-case is: I'm sitting at my desktop and I ssh into a server. I start a long-...
0
votes
1answer
344 views

How to create a new tmux window with same pane layout?

Is it possible to create a new tmux window with the same panes layout as the current window?
2
votes
1answer
186 views

Escape keywords with tmux send

Using tmux to send commands along from one terminal to another, I realize that $ tmux send -t mySession "text" ENTER correctly sends text, but $ tmux send -t mySession "up" ENTER sends text again, ...
0
votes
2answers
51 views

How to change tmux `status line` directory at startup?

I notice when running tmux, it always starts at /home/user/ directory regardless of the current working directory of shell where tmux started. I confirmed this by running pwd at statusline: set -g ...
0
votes
0answers
17 views

Tmux: change color of separated line and spaces between two panes [duplicate]

I'd like to change green color to something else, and spaces between two panes to other value, how could I achieve this?
2
votes
2answers
1k views

Tmux under Kitty terminal

I recently discovered the neat kitty as some aspects of the themes I'm using under ZSH don't render quite right under Xfce Terminal but do under kitty. Unfortunately I've hit a snag when it comes to ...
0
votes
0answers
32 views

Tmux: active pane's color tearing after running setup layout script

I wrote a zsh script that setup tmux session and panes in detached mode, some commands that I use related to panes in script: select-window, split-window, select-pane capture-pane. I suspect that ...
2
votes
1answer
144 views

Zsh/Tmux: Wait for success of subprocess

Refer to this unanswered question before continuing: Tmux: check exit code of command that was sent by send-keys tmux send-keys just sends the command and exit successfully but repeat 5; do print ...
1
vote
0answers
189 views

Tmux: check exit code of command that was sent by send-keys

I have these commands in a zsh script: tmux select-pane -t 0 tmux send-keys 'repeat 5; do print This is a test; sleep 1; done' Enter The tmux's send-keys itself just sends string to the pane but ...
1
vote
0answers
32 views

make logical screen larger than physical screen?

In tmux or screen or other, is there a way to make the logical screen larger than the physical screen - so you can (1) scroll around to see the whole screen, and (2) view different parts of the ...
0
votes
1answer
48 views

how to get variables defined in different file in tmux?

I have two files named tmuxA.conf and tmuxB.conf. tmuxA.conf position='bottom' tmuxB.conf source-file ~/path/to/tmuxA.conf set -g status-position $position I can't seem make it work, I'm ...
0
votes
1answer
81 views

How to set the version number reported by `$ tmux -V`, during the compilation of a `tmux` package?

I'm compiling tmux from its source code via a script which looks like this: set -e DIR="${HOME}/Programs/" build() { [[ -d "${DIR}" ]] || mkdir -p "${DIR}" cd "${DIR}" if [[ ! -d tmux ]]; then ...
0
votes
1answer
183 views

vim running in tmux permanently freezes when I accidentally type C-x s [duplicate]

I use emacs a lot, and type C-x s to save there. When I am in vim running inside tmux on a remote machine, if I accidentally type C-x s, the vim instance completely freezes up, and the only way out is ...
1
vote
1answer
53 views

Prevent directory variable expansion

tmux seems to override my default bash behavior. Suppose export someDir=/path/to/it, then in my shell Hitting tab on cd $someDir automatically adds a front slash, cd $someDir/. On tmux it does ...
0
votes
2answers
630 views

Color codes in bash $PS1 not working in tmux

I have a colorized prompt set up in my .bash_profile: export PS1="\[\033[0:33m\]testprompt@\h\[\033[00m\] " Outside of tmux I get a colored prompt reading testprompt@hostname. Inside a tmux ...
0
votes
1answer
48 views

ssh-agent for nested tmux session

sessionA sessionB I start tmux in first window of sessionA but using this command to wake it: ssh-agent tmux that I expect new nested sessionB will have its own ssh-agent listen for it. And ...
1
vote
2answers
74 views

tmux can't see nested session

Extent of this question: https://unix.stackexchange.com/q/467025/256195 But now after run tmux inside sessionA to create sessionB, actually first tmux create a new named session 1 and I'd need to ...
0
votes
3answers
142 views

Switch between nested tmux sessions

I'm writing a zsh script that setup nested session. I have a session and a session inside that session. sessionA sessionB I can create sessionA in detach mode -d and then call tmux inside that to ...
0
votes
0answers
30 views

Tmux-logging: zle reset-prompt cause enter in log file

I need real-time clock in prompt so I enable trap with zle reset-prompt, this causing tmux-logging continue to capture like enter with TMOUT=1 - each 1s causing like new line, I have bunch of these ...
1
vote
0answers
30 views

Zsh/Tmux: Script find a specific session, setup layout then run commands on panes [closed]

I have tmux session that named ABC, now in tmux session ABC I'd like to run a zsh script that ask me for the name of tmux session, the name of window, how many panes I'd like to create, how many ...
0
votes
0answers
107 views

Retrieve arguments of current command in tmux pane

{#pane_current_command} seems to contain only the name of the running executable, without the arguments passed to it. Can the arguments be retrieved in a simple way? I know of ps -o state= -o args= -...
1
vote
0answers
67 views

Export vars env to tmux's window/session/pane's env

Is there any way to export/upgrade list of variable env from a file or something to tmux's window/session/pane? Here I have to manually source .bashrc to update new var env to each tmux's pane.
0
votes
1answer
223 views

When tmux enters copy mode, is there a relative line number as Vim does?

For me , the most helpful vim trick is the relative line number, which can help me to randomly access a line Is there a similar facility in tmux when I enter copy mode? If I can randomly access a ...
0
votes
1answer
51 views

Splash tmux status-right text at start

I disabled tmux status-right by set this option: set -g status-right '' but when I attach tmux: tmux a, there's a text in status right appear and destroyed in a fast way. tmux 2.7 on archlinux, I use ...
0
votes
0answers
16 views

How to avoid inputting password after tmux shows disconnected

When tmux shows disconnected accidentally or even you exit tmux then reboot your windows, below error often comes during login servers by SSH, " Error reading response length from authentication ...
0
votes
1answer
506 views

Beter pane resizing mapping for tmux

My current pane resize mapping are bind Left resize-pane -L 5 bind Down resize-pane -D 5 bind Up resize-pane -U 5 bind Right resize-pane -R 6 I have to type the key binding strokes and the arrow ...
2
votes
0answers
141 views

Issue setting environmental variable in tmux and screen

Whenever I use Tensorflow (a python library) from within a tmux or screen session, I have to manually change the environmental variables. Specifically, I have to type export PATH blah blah blah and ...
0
votes
1answer
59 views

Would the tmux process in ssh terminal be stopped when I terminate my laptop?

I've known that the tmux process would shut down when I reboot my computer. But is it also the same when the tmux process has been doing at ssh server? For now, I've been downloading some data into ...
1
vote
1answer
438 views

tmux, I can set 'pane-border-format' but i can't get 'pane-border-format', so to that end, how to get pane options?

I can do this: tmux set-option -g 'pane-border-format' but when I do this: tmux show-options -gv 'pane-border-format' I just get the error: unkown-option: pane-border-format what gives? Why can ...
0
votes
1answer
81 views

Documentation about tmux TPM plugins

I'm wanting to build a TPM based plugin but the example provided is extremely minimal, doesn't explain how to do things (like creating commmands that can be used in the tmux status bar, or how to have ...
0
votes
1answer
178 views

In tmux how to set pane specific variable to display in the pane status bar for that pane only

In tmux, how do I create a function that will set a variable that will then be available to use within tmux pane border status: set -g pane-border-format so I can then run that function and have the ...
0
votes
1answer
217 views

How to clean up all windows of tmux?

When I pressed Ctrl+b w, I saw the windows I used before. How could I delete all of them?
0
votes
0answers
26 views

tmux mouse-wheel is too jaggy

I use tmux but when I tried to scroll upward to check the output of my command on the tmux session using mouse (actually the trackpad on MacBook), the mouse movement is too jaggy. In other words, it ...
0
votes
1answer
165 views

Why is my tmux active pane title not changing back after sshing into a remote host?

I looked through the tmux man page in the the STATUS LINE section. STATUS LINE tmux includes an optional status line which is displayed in the bottom line of each terminal. By default, the ...
0
votes
1answer
120 views

Error while loading .tmux.conf

I am trying to bind some keys to some certain commands in my .tmux.conf. The commands are as follows bind-key C-c send-keys -t right \ "import os;clear = lambda: os.system('clear');clear()\;" \; send-...
0
votes
1answer
75 views

Why can't I grep the tmux man page for join-pane? [duplicate]

If I type man tmux then /join-pane I go right to the subcommand I'm looking for: But if I grep the man page then I get nothing: $ man tmux | grep join-pane $ echo $? 1 If I try something different ...
1
vote
2answers
311 views

How do I build Tmux from source without root access with a custom-built libevent 2.1?

I want to use Tmux on a scientific computing cluster node, but it's not available in any of the Environment Modules that I can see. So I went about to build it from source, without root access. ....
2
votes
0answers
123 views

Execute command on current tmux session when attached to a window group

I usually use two tmux sessions that share a single window group. My problem is that panes remember the session they were created from, and a tmux command executed in a shell always acts on the parent ...
1
vote
1answer
65 views

Where to define shell aliases in configs for projects in tmuxinator?

I define Bash aliases in my ~/.tmuxinator/*.yml files like this: pre_window: alias cc=heh/path/that;alias ccc='cc clean; clear; cc' ;alias selenium-restart=bin/docker/restart-selenium-chrome ;alias ...
1
vote
1answer
325 views

tmux: backspace and ctrl-backspace send both ^?

With FreeBSD 11.1 and tmux 2.7, pressing ← (backspace) sends ^? and ctrl+← does also send ^?. The default behavior (no tmux) is: ^H for ← ^? for ctrl+← How can I get this default behavior with ...