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
2answers
24 views

How to colorize last window in status line?

I'd like to make the last selected window (the one to which :last-window takes you) to stand out visually. By default it's just marked with an inconspicuous - after the name. Is there a way to set ...
2
votes
2answers
37 views

Getting 256 colors to work in terminal multiplexer

tmux I followed Getting 256 colors to work in tmux: I have alias tmux='TERM=xterm-256color tmux' in ~/.bashrc and also set-option -g default-terminal "screen-256color" in ~/.tmux.conf In konsole: ...
1
vote
0answers
12 views

How to stop tmux capturing key sequences?

My xterm is configured to produce this sequence: Ctrl ~Shift <Key>Tab: string(0x1b) string("[27;5;9~") \n\ Under tmux it almost always does not work (sometimes it passes through). What could ...
1
vote
1answer
9 views

Get TMux scroll buffer contents

With TMux, is there any way to programmatically retrieve scroll buffer content from above the current command line? I'm basically looking to write a bash script to iterate upwards until I find a ...
1
vote
1answer
20 views

Does TMUX have unit tests or a test suite?

I am going through my configuration shell scripts and I have found the make commands to run test suites for pretty much every "big" open source project that I use (vim, zsh...) except for tmux. I ...
1
vote
0answers
9 views

tmux color theme in emacs gtk

When I use emacs -nw I always use it in tmux 256-color mode. tmux applies its default color theme to emacs so it looks like this: For some reason I like that color theme far better than any other ...
0
votes
1answer
17 views

RVM + TMUX—Duplicate entries in $PATH

My Linux terminal config files (.bash_profile, .profile, .bashrc) expand $PATH by prepending some custom directories. This only happens once (and I've also included some ENV vairiable based guards to ...
2
votes
1answer
24 views

tmux client/server version mismatch during distribution upgrade

It has become fashionable to run distribution upgrade in a tmux terminal to avoid remote connection issues or issues with the X server (e.g. opensuse documentation). Yet this does not take into ...
0
votes
2answers
15 views

How to add a horizontal split to tmux window that spans the whole width of the parent window?

When I have a tmux window vertically split into two panes, how can i spawn a new third horizontal pane that stretches over the full width? e.g. How do I get from this: Ctr-b % +–––––––––+–––––––––+ ...
2
votes
0answers
21 views

Can I change tmux status bar color when I hit C-b

I use tmux on the local computer then ssh and use tmux too. I can easily use them both (C-b twice for modifying the second tmux) but for more readability I'd like to highlight the status bar of the ...
1
vote
1answer
26 views

Combining local and remote terminal multiplexing

I use tmux regularly to easily handle multiple terminals on my local machine. Sometimes, I need to connect to a remote machine and start a script in one the terminals (i.e. a pane or window in tmux). ...
1
vote
0answers
17 views

Execute commands on TMUX Detach

Is it possible to execute commands on tmux detach? I usually have a rails console and server running in the tmux session, on detach is it possible to automatically end those? Thanks.
2
votes
2answers
29 views

How do I increase my iterm (tmux) window scrollback (not the line scrollback)

When I want to scroll back, i.e. with my mouse (or with PageUp) I can only go up about 43 pages (about 2000 lines). Can I increase that? I have my terminal preference -> "Scrollback Lines" set to ...
6
votes
1answer
35 views

Why does Tmux Space leader also make 2 a leader?

I have a very simple tmux config file that contains the following: set -g prefix C-Space This works great for using my spacebar as a leader, however it also makes C-2 and C-@ leaders. This is ...
0
votes
1answer
20 views

What speed should zsh connect to tmux at?

I think this is a tmux question, though it may be a zsh question, or a question relating to both. I SSH to a server from a Windows box using PuTTY. In the PuTTY configuration window, in the Data ...
2
votes
0answers
24 views

tmux: shared session, one user in a pane, another in another pane, two different cursors

I've decided to try tmux: have been reading the docs and googling around, trying to find a way to have two users sharing a session, each with a different cursor. However, giving 777 permissions to ...
3
votes
1answer
28 views

Why does `tmux` copy operation always output temporary gibberish to the terminal?

If I complete a copy operation using tmux, I always get one or more lines of gibberish written to my screen, which goes away when I change windows or do a paste. Why does this happen, and can it be ...
3
votes
1answer
58 views

Set tmux status line color based on hostname

I'd like tmux to pick a color dynamically based on the hostname of the machine. Since I share my tmux.conf across several machines, assigning an unique color for each of those hosts would be handy ...
1
vote
1answer
107 views

tmux - protocol version mismatch (client 8, server 6) when trying to upgrade

I'm trying to upgrade to a newer version (that has a bug fix) than my current 1.6 I am on Ubuntu and recently upgraded to Ubuntu 13.04 Ideally I want to use tmux version 1.8 or even 1.9 I've ...
3
votes
1answer
34 views

When exiting the last terminal in a tmux session can it switch to another?

When I exit the last terminal in a tmux session it will automatically close tmux and return me to the parent terminal. Is it possible to instead have tmux switch to another, already running, session ...
1
vote
1answer
64 views

How can I start tmux automatically in fish shell while connecting to remote server via ssh

I switched from bash to fish shell. I liked it and decided to use it on my servers also. How can I start tmux automatically on ssh connection? I followed this instruction for bash but fish shell is ...
0
votes
1answer
41 views

Tmux monitor activity change highlight color

I'm setting up my tmux.conf and I want to have the activity monitor with different colors. I would like to change the color of the highlight of the alerted window in the status bar. The problem ...
2
votes
1answer
49 views

Completion of words on the screen as in VIM (Bash or Tmux)

How can I configure Bash or Tmux to complete the last matching identifier on the screen? Consider this common scenario: $ git fetch remote: Counting objects: 16, done. remote: Compressing objects: ...
2
votes
0answers
131 views

tmux and Powerline: working configuration

Background I found very interesting the Powerline project. After several attempts, I managed to get it to work correctly for Vim. Then I did proceed with enabling it for tmux, by pasting the ...
1
vote
0answers
29 views

vim and tmux on the same line

I would like to figure out a way to get my vim statusline and tmux statusline on the same line if such a thing is possible and not immensely difficult (ideally, the vim prompt, or whatever it's called ...
5
votes
1answer
181 views

tmux, Vim and Solarized

Premises Browsing around tmux, Vim and Solarized I can find lots of complains about 256 colours and "user experience". Well, I'm having the opposite "problem", i.e. Vim works well with a full ...
6
votes
2answers
182 views

tmux, TERM and 256 colours support

Introduction My question arises from the necessity of understanding why I have now (after multiple trials) Terminal and tmux which support 256 colours even with tput colors that tells me they are ...
2
votes
0answers
27 views

xinitrc: starting xterm with tmux causes all windows to share same geometry

I have xterm with tmux open upon startup of X11 with the following line in my xinitrc file: xterm -e tmux & However the -e tmux causes all windows to assume the geometry of the first -geometry ...
2
votes
0answers
46 views

How to detect TMux level

Is there any way to detect how many levels of tmux I'm currently in? I've been able to hack it with 2 levels by simply checking [[ -n "$SSH_CLIENT" && -n "$TMUX" ]], so I can have one level on ...
1
vote
1answer
10 views

Split parent pane instead of the active one

Let's say I've obtained this configuration by using splitw -h once, with A currently active: +---+---+ | A | B | | | | | | | +---+---+ How can I add a new split below those 2 splits? ...
2
votes
2answers
55 views

Using environment variabless in Tmux status bar shell commands

I am attempting to create a tmux status bar which shows three timezones: US Eastern Time :: UTC :: Central European Time. Using the TZ environment variable makes the date command show the time in a ...
3
votes
1answer
120 views

How can I forward a already forwarded ssh key into tmux?

I'm connecting through SSH from a machine where my keys are stored, forwarding to a second machine, and then try to use the keys from within tmux. I appear to "loose" the forwarding when entering ...
1
vote
0answers
29 views

tmux disable automatic-rename on break pane

If I setw automatic-rename off on two windows, then join them, when I detach either one tmux automatically renames it! And "show-window-options" now has no record of the "automatic-rename off". How ...
1
vote
1answer
41 views

How to see the amount of pending data on a unix domain socket?

When I'm logged to a tmux session from two different computers, I'd like to be able to trace the amount of pending data on the sockets of both tmux session. To test this I logged to computer A and to ...
0
votes
1answer
62 views

Tmux key-bind like to use the windows/super for my meta key in Tmux Without X [duplicate]

I have RaspberryPI with no GUI==(no x.org) I like to bind the useless window/super key to be my prefix. Using Arch for ARM runs great. If think this is going to take more then simple mod in the ...
2
votes
1answer
49 views

Can I apply `tmux` to a bash script?

Is it possible for me to use tmux to SSH into a Raspberry Pi, run a Bash script, and then leave the session (from my laptop), while the Raspberry Pi continues to run the script?
1
vote
5answers
133 views

Is there a way to make a Bash script enter a certain keystroke?

Is there any way to make a bash script enter a certain keystroke? What I'm trying to accomplish here is a script that will run Ctrl+B to exit tmux. EDIT: I see that several people are saying that ...
2
votes
1answer
69 views

Byobu - send command to byobu tmux session from commandline (or bash/sh)

I run a script which I would like to print the status to a byobu tmux session. So for example print backup finished \n. Is it possible to do this with the name of the byobu tmux window, which you can ...
2
votes
3answers
79 views

How do I know the name of a tmux session?

Recently, I started using tmux, I find it nice but still having issues to understand this application. One of the basic questions I have is: How do I know (command from cli) what is the name of the ...
0
votes
1answer
85 views

How do I find out the keycodes for Ctrl+up and down arrow for TERM=screen?

I am using tmux a lot, and I have already managed to tune my OS X terminal to send the correct key codes for Ctrl+left and right arrow (\033b and \033f). I found those information on the web. However, ...
1
vote
1answer
102 views

copy from tmux to any editor not working

I am trying to copy from tmux to my browser. I followed the post Copying between tmux buffers and the system clipboard which tells me to add setw -g mode-keys vi bind-key -t vi-copy 'v' ...
4
votes
1answer
278 views

tmux copy mode search highlight

Is there any way to highlight the searched term in tmux copy mode? Below is my tmux config: # remap prefix to Control + a set -g prefix C-a unbind C-b bind C-a send-prefix bind a send-prefix # ...
1
vote
1answer
22 views

tmux.conf: Prefix depends on whether session is remote

I'm trying to run tmux sessions inside and outside of a remote ssh session, so I want to use c-b prefix for the outer (local) session and c-a prefix inner (remote) session. My question is how can it ...
2
votes
1answer
142 views

Re-set $TMUX after unsetting

I did the following to try and get Byobu to work (see http://stackoverflow.com/questions/19099018/byobu-error-sessions-should-be-nested-with-care-unset-tmux-to-force ) on a Ubuntu server droplet I ...
1
vote
0answers
12 views

tmux: multiple bindings for the same action [duplicate]

Like many screen users I'm used to Ctrla, so on my machine I changed the binding to Ctrla, however, I wish to keep Ctrlb since on some machines it's the default and when sharing work with other people ...
0
votes
0answers
19 views

How can I make C-j send a newline in the tmux command line?

I have grown fond of using C-j instead of <ENTER> to send newlines. Unfortunately, in the tmux command line (invoked with prefix-: by default), C-j does not do anything, even with set -gw ...
2
votes
1answer
73 views

mirroring a pane between two windows

Is it possible to have the same pane appear in two different windows of a single tmux session? I typically have a single horizontal split in my main window with vim in the top pane (about 80-90% of ...
0
votes
2answers
102 views

Why do you need screen/tmux to keep a remote program running

When I ssh to a server and start a script that is supposed to run for several days, it stops executing some time after I log off. Why? I suppose the server runs 24/7. And what does screen/tmux do to ...
2
votes
1answer
63 views

Send keystrokes to a process on Console

If I have a terminal with a shell open, how can I write a shell script (any scripting language is ok with me!) that will send a keystroke to any one of the running processes? As an example, how could ...
0
votes
1answer
37 views

Vim Window in Tmux

In Tmux, how do I assign a particular program to a particular window, so that all calls to that program from a shell in another window in Tmux will go to that program? One example would be a window ...