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.

learn more… | top users | synonyms

1
vote
0answers
48 views

Setting tmux session title in zsh [closed]

There was a similar question about screen regarding this here, but I was unable to get this working with tmux. From what I understood printing a string with prepended with \033k and appended with \033\...
0
votes
0answers
17 views

How can I create windows near by in tmux

Suppose I have 7 windows, and I am in the no.3. When I use Ctrl+B c, I create windows in the location 7. How can I create it in location 4 so that I was near the No.3? Of course, the windows number ...
1
vote
0answers
68 views

How to use Ctrl+mouse click in tmux?

Due to the change in Tmux2.1, I need to remap my mouse's middle click to tmux's paste: bind -T root MouseDown2Pane run -b "tmux paste-buffer" However, I also would like to enable using Ctrl (or Alt,...
1
vote
0answers
57 views

How can I use color output in a tmux run-shell command?

I've bound a key to run a script with tmux's run-shell command, but I can't find any way to use color output. normal ansi codes do not work, e.g. echo -e "\e[32mblah blah\e[0m" tmux formatting does ...
2
votes
0answers
67 views

How can I prevent tmux from blocking when I scroll up?

tmux is awesome, but I'm often in situations where scrolling up causes (admittedly minor but still undesirable) problems. For instance, I have a node.js server running in one window, and BrowserSync ...
1
vote
2answers
126 views

Execute command on remote screen

On a remote server I have multiple screens open and I use each one for different purpose. For example the screen with the ID 'build' it is being used to compile some programs. I can open that screen ...
1
vote
1answer
182 views

tmux build failure

server-fn.o: In function server_destroy_pane': server-fn.c:(.text+0x8ec): undefined reference toutempter_remove_record' window.o: In function window_pane_spawn': window.c:(.text+0x356c): undefined ...
0
votes
0answers
12 views

Executing spawned quick commands in tmux?

Sometimes I want to execute a fast command while working on a pane which got a blocking cli (for example a running web server app) so I have to open a new pane, execute that command and close it right ...
9
votes
2answers
735 views

Why does tmux set TERM variable to screen?

Citing tmux man page: The TERM environment variable must be set to “screen” for all programs running inside tmux. New windows will automatically have “TERM=screen” added to their environment, but ...
0
votes
1answer
513 views

Tmux: <Crtl>-b doesn't work

Every time I start tmux and then press Ctrl+b, the terminal prints ^B. I am using Windows to connect to Raspberry Pi. I have tried Putty and Bitvise. EDIT: finally I found a imperfect solution. # ...
0
votes
0answers
117 views

Tmux session name background color persists between sessions

I have tmux set to display the session name in the left status bar. The background color of the session is either red or green depending on if I have failing tests or passing tests. When I switch to ...
-1
votes
2answers
34 views

Where can I find all tmux options?

Where can I find a list of all tmux options? I know of tmux list-keys -t which shows you various keybindings and their commands, but I'm looking for a comprehensive list of all possible tmux commands....
0
votes
0answers
43 views

Prevent tmux from becoming idle

I work with a cluster that terminates idle processes after they have been idle for 24 hours but I want to leave tmux sessions running for multiple days so that they are still there when I come back ...
0
votes
1answer
131 views

How can I change my tmux color scheme based on the time of day?

I just implemented a few lines into my .vimrc that changes the color scheme from SolarizedDark to SolarizedLight based on the time of day. " Solarized light during the day, solarized dark during the ...
2
votes
3answers
242 views

ssh into a server that has a broken bash install

I think I broke the installation of ncurses on my Arch Linux VPS. Now I can't login with SSH, I get this error: $ ssh me@xyz.com Last login: Mon Oct 26 08:56:59 2015 from 0.0.0.0 -bash: error while ...
3
votes
1answer
196 views

tmux causing bold fonts in vim

I have installed tmux with vim, using the solarized colorscheme and airline plugin. All is good until I start tmux, where all the font turns bold and the airline status bar is looking weird. I have ...
0
votes
1answer
33 views

Additonal layer of abstraction for GNU screen region management?

Here is my use case: I have maybe 10 or so windows open in screen. I want to be able to split my terminal into regions and assign windows to regions. So far, so good. However, I want to be able to ...
4
votes
1answer
134 views

Format tmux's pane_current_path

I'm trying to set my tmux window's title to be the current directory that I am in. Now pane_current_path is perfect for this, but it prints the full path in my machine. Is it possible to run ...
4
votes
2answers
120 views

Tmux and dim-ed colours in Terminal.app on MacOS

The problem On my Mac (10.11) Tmux does not show dim-ed colours properly, and this causes annoyance. In the following picture, the commit author's name is supposed to be represented in dim white. ...
3
votes
2answers
121 views

Is it possible to scroll faster than PgUp/PgDown in tmux?

I have approximately 400k lines of output to scroll in tmux. How can I speed up the pace of scroll in copy mode? Alternatively, how can I transfer all the (already generated) output content to a file?
2
votes
1answer
195 views

Tmux 2.0 “pane_current_path” not working on CentOS

Tmux 2.0 on my CentOS always goes to the home directory when creating new pane or window. I have added these lines in .tmux.conf but still not working after restarting tmux: bind '"' split-window -c "...
0
votes
0answers
365 views

PuTTY and tmux: default resize-pane bindings do not work

I'm using PuTTY 0.65 on multiple Windows 10 systems to connect to tmux 2.0 on CentOS 7 and FreeBSD 9, using the default key bindings in tmux. Pasted from C-? shows: bind-key -r M-Up resize-pane -U ...
0
votes
1answer
55 views

tmux error on debian

I install tmux via apt-get. When I type tmux, it acts like first $ clear and then open another bash, I can not see any render borders as usual nor to split or create any windows or panes. Then I type ...
1
vote
1answer
104 views

can I use ssh to send build command for android building?

I'm new in Linux, but learning bits by bits.. So please give explanation too, instead of only the answer, to help me understand about why and how. Currently I want to build an android rom with ...
0
votes
1answer
50 views

tmux configuration

I'm trying to change the tmux colors on a computer I haven't visited in a while. In tmux man page I read that tmux will look for a /etc/tmux.conf and, if not found, would go to ~/.tmux.conf. Since the ...
1
vote
1answer
409 views

remapping Caps Lock to Ctrl key in tmux

I'm a Linux beginner and using tmux 2.0 on CentOS 6.7(without X). How can I use Caps Lock instead of Ctrl in tmux?
1
vote
1answer
139 views

Run an existent tmux session at SSH login or create if not exist

I want to open a tmux session every time I login through SSH to my server. If the session exist, connect to it, if not, create and connect to it. I think I need edit ~/.bashrc file to do this, but I ...
1
vote
0answers
16 views

How do I terminate Aptitude safely

I have a TMux session with Aptitude open. The Aptitude process has been "killed" several times with STOP/CONT. Now it doesn't react to the Q key. Instead a 'q' is printed on the top-left corner of the ...
2
votes
1answer
107 views

tmux/zsh messes up pasted text

When I paste text into a tmux shell running zsh by select it with a mouse and then hitting 3rd mouse button, it prefixes the text with "200~" and adds a "~" at the end. For example, if I have the ...
3
votes
0answers
116 views

Monitor exit code in tmux

Is there a way to update tmux window attributes based on command exit status? Similar to activity monitoring, I would like the title to change color when a command exits, say, green for success and ...
3
votes
0answers
63 views

Jump to last prompt in terminal (or tmux)

In a terminal, are there any shortcuts to jump to a previous/next prompt? Scrolling up and trying to find the start of a log slows down my workflow. I'm using iTerm on OSX, but this should be ...
0
votes
0answers
41 views

How do I go to the last line where I entered text in tmux?

I often use tmux to scroll through error messages for various reasons. Usually I use the ninja command to build my projects so when I hit compilation errors ctrl+b [ ninja quickly takes me back to ...
2
votes
0answers
55 views

Is it possible to style tmux on a per-session basis?

I set up 2 tmux sessions to work on different parts of a project (switching back and forth frequently). As their layout are pretty similar, I would like to set different status-bar color to help me ...
3
votes
1answer
112 views

In tmux, is it possible to list all panes in all windows?

Say, I got two windows, Window 1 contains 2 pane (1, 2), Window 2 contains 3 panes(1,2,3), and I'm in pane 1 in Window 1, and I want to jump directly into the pane 2 in Window 2, PREFIX w which is ...
0
votes
1answer
175 views

Running script through bashrc causes nesting of tmux panes

I use the following tmux code in a script file tmux-dev.sh and add it to bash using bash /home/rohit/tmux-dev.sh : tmux new-session -d tmux split-window -h tmux split-window -v tmux -2 attach-session ...
1
vote
2answers
136 views

Execute command inside another command

I'm trying to record my tmux session. I've got an alias record-session which executes command from ttygif ttyrec ~/ttygif/files/last-session. As far as I understand ttygif starts new terminal instance ...
3
votes
1answer
66 views

How do you reset my tmux display? Its stuck in a smaller window

for some reason my tmux is stuck in a smaller box. what is the reason for this? And how can I reset my display? Yes i know i can just kill the pane, but i have a bunch of sessions i want to keep. ...
1
vote
1answer
110 views

Killing grouped sessions on client detach

I'm using the grouped session feature of tmux to attach to a single session from multiple clients with different screen sizes. Therefore I automatically perform a tmux new-session -t <session_name&...
2
votes
3answers
3k views

How do you update the YUM package manager repositories?

I have a new install of Red Hat and I'm trying to do a "yum install tmux" but it is throwing a no package available error: [root@PSCHQVP20017 ~]# yum install tmux Loaded plugins: product-id, refresh-...
0
votes
0answers
65 views

tmux: getting 'lock-command' to execute multiple commands

With tmux, is it possible to get multiple commands to be executed after idle time with lock-command? Example: I can bind multiple commands to a key like this: bind R display-message "Sleeping" \; ...
1
vote
0answers
178 views

Binding mouse buttons in tmux

Has anyone managed to bind mouse buttons to custom functions in tmux? According to the manual this should work: bind-key -n MouseDown2Pane paste-buffer This should let me take text that was ...
2
votes
1answer
2k views

tmux force resize window

I usually connect to remote linux servers from a specific windows server (W1). On the windows side, I use putty and on the linux side, I start tmux. Occasionally, I have to use a Different windows ...
3
votes
3answers
167 views

How do I remap newline and carriage return regardless of the terminal used to connect?

All my configuration is stored in my github account (https://github.com/mnebuerquo/dotfiles) so I can just clone my repo and run my install script and my home is configured to use all my tools. I ...
2
votes
3answers
697 views

Trailing spaces when copying from console

It's this annoying behavior I've been experiencing here and there occasionally: when you select text with mouse in console (that is, copy it), paste it, and realize you've got extra spaces at the end ...
0
votes
2answers
111 views

Tmux bindings using Ctrl+comma

In OSX, on iTerm2, I can map Ctrl/Cmd/Opt+, or Ctrl/Cmd/Opt+. to hex codes that go to next or previous tmux windows. How can I use Super/Meta/Ctrl and comma/dot key presses on Linux to produce the ...
1
vote
2answers
99 views

How to comment in a windows.tmux file

My ~/.byobu/windows.tmux file is getting a bit complex and I would like to document it with comments. How to insert comments in Byobu's windows.tmux file? Using # as seen below results in a unknown ...
0
votes
1answer
29 views

Determine the tmux session a shell session belongs to?

tmux provides a number of commands in the shell such as rename-session which operate on the session that the invoking shell belongs to. It also provides commands like list-clients which list out the ...
0
votes
2answers
114 views

“Replace” default shell (bash) with tmux

Background: An co-worker at my company uses tmux all the time. In our spare-time he taught me enough to master tmux and vim. I have really falled in love with the power of this combination. Currently,...
3
votes
1answer
288 views

How to get clipboard support on a Linux server without X11

I have a virtual Linux development environment running under VirtualBox and Vagrant. I use tmux and vim to setup multiple open vim instances. I'd like to be able to copy and paste between those ...
1
vote
2answers
41 views

“Quit and restart” control code?

I find myself frequently (after making some change to source) "Ctrl+C;↑ ing" to restart the program with changes. Is there a way to do this more quickly, without wrapping the program in a loop ...