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

6
votes
2answers
2k views

Creating launchable tmux configurations?

I find myself often doing the same thing with tmux: cd to a given directory. tmux Rename window to what I'm doing. Split the window vertically 50%. Start one process in the left window. Start ...
13
votes
2answers
9k views

tmux bottom bar color change

I recently started to use tmux and like it much, but it's green bottom bar is a bit distracting, is there a way to change its color? or a way to hide it?
3
votes
2answers
434 views

The key codes for Caps Lock, Shift, Left Control and FN key?

Can somebody please provide the key codes for these keys: Caps Lock Left Shift Left Control Option key FN The key code I'm talking about is something along the lines of \<Esc>[200~, although ...
2
votes
1answer
175 views

How to set Cols and Lines for a Subprocess

I have a script that runs a series of scripts numbered 001,002,003,004... etc down to 041 right now, will be more in the future - and these scripts them selves use some cursor control to print a ...
10
votes
2answers
3k views

Copy text from one tmux pane to another (using vim)

I have two files opened in vim, each in one tmux pane. I would like to copy let's say 10 lines from one file to another. How can I accomplish this not using the mouse's Copy -> Paste ?
3
votes
1answer
1k views

Kill a tmux session and select another tmux session

I am trying to bind X to do the following: prompt the user whether the session should be killed if y is entered, kill the session after the session is killed select another session (last, previous, ...
1
vote
1answer
497 views

How to compile tmux 1.7 on CentOS 5.8?

I would like to have tmux 1.7 on my machine with CentOS 5.8 (64 bit). It requires libevent in version at least 1.4.14b or 2.0.20 and the latest version in yum packages for CentOS 5.8 is 1.4.13 . I ...
2
votes
2answers
809 views

Tmux Terminfo problem with Zsh key bindings

Zsh in Emacs edit mode comes with the default key binding ALT + Backspace to delete a word on the right side of the cursor and ALT + D to delete a word on the left side. I would like to add the latter ...
3
votes
0answers
2k views

Reset background to transparent with tmux?

I recently set up tmux-powerline and noticed that the background color on the status-left, if changed, refuses to go back to default and transparent (if transparency is enabled). I was able to fix ...
9
votes
4answers
5k views

Reload of tmux config not unbinding keys (bind-key is cumulative)

I've been experimenting with different tmux keybinding settings and I've noticed the following: If I reload my tmux config (from within tmux) the keybindings I once had loaded will remain loaded. The ...
1
vote
1answer
242 views

Specifying tmux command-prompt line

How can you specify the line where you want tmux's command prompt to appear? I want to see the panes when executing tmux commands that require pane numbers (e.g. join-pane, etc) but as the command ...
8
votes
1answer
979 views

How to copy from/to the tmux 'clipboard' with shell pipes?

When working in a shell environment I run fairly often into the need to copy 'intermediate pipe output' around (eg. from/to already running editors, to other shells, other machines, etc.). When in a ...
2
votes
1answer
47 views

How to prevent tmux from displaying date in new window

When I create new window in tmux it displays name of current directory and date: Directory: /home/killy nie, 4 lis 2012, 14:51:18 CET [killy@xerxes : ~] How can I prevent that? EDIT: I realized ...
6
votes
2answers
820 views

emacs colors based on $TERM environment variable

I want to know if it is possible to make emacs, when running in a gnu screen or tmux session, use the same colors as when TERM=xterm. In a gnu screen or tmux session, TERM=screen and emacs uses a ...
12
votes
2answers
6k views

How do I cycle through panes inside a window in tmux like in screen?

I thought Tmux - move window to pane was the same question but it doesn't seem to be. Coming from using GNU screen regularly, I'm looking for tmux to do the same things. On of the things I do ...
4
votes
1answer
260 views

tmux: Set default session for attach

I have two tmux sessions (0 and 1), each with a set of windows. When I run tmux a, I attach to one of the two sessions, usually 1 but sometimes 0. I always want to attach to 0 if I don't specify a ...
7
votes
2answers
3k views

Byobu with tmux, how to use F-Keys

I'm accessing a linux box with Byobu enabled (with tmux) and I don't seem to be able to use some F-Keys without being binded to Byobu. For example using F6 to sort on htop. I followed this advice, but ...
3
votes
0answers
1k views

Bad utf8 display with tmux

When I press the "é" key multiple times on my keyboard, here is what tmux print (notice the spaces) : arcanis@~ > é é é é é é é é é é é é é It also broke emacs when the file contains utf8 ...
4
votes
1answer
519 views

Byobu creates infinite spawn of “byobu-status -> tmux” children under tmux

When I launch Byobu, my System Monitor shows a new tmux process with a continuously growing set of byobu-status -> tmux children eating-up all my memory... -> tmux -> byobu-status -> tmux ...
4
votes
2answers
751 views

Tmux eclipsed colorized output of ls

I'm running Xubuntu 12.04, and when I use the Terminal I get colored filenames from ls. But inside tmux, everything ls prints is white. I know my tmux supports color, though, because I get color ...
2
votes
1answer
732 views

Can't use mouse properly when running vim in tmux

I'm running VIM in tmux, When I'm try to select a range of texts in VIM, the mouse kept resetting its position, thus I can only select one line (the last line where mouse occurs). Does anyone know ...
1
vote
0answers
110 views

tmux choose-session format

Can I specify a "format" for the choose-session window beyond text attributes, foreground, background and other cosmetic factors? Specifically: can I somehow set something that will always supply the ...
12
votes
2answers
1k views

Ctrl-C does not work with pppd non-detached session

I have a Mini2440 ARM Board, and I have put a base Debian 6.0 system on it using multistrap. I have used tmux to run several processes in defferent windows from /etc/rc.local. I connect to the board ...
2
votes
1answer
187 views

ESC-q doesn't work in tmux with zsh

The title says it all. I use Escq a lot (stashing the current line while I execute another command), and it works fine with Gnome Terminal 3.6.0 + zsh. However, if I start tmux, then it stops working: ...
1
vote
0answers
166 views

tmux.conf embedding a shell script?

In my tmux.conf, I need to start a session with the name of the current user in capitals (this is actually a simplification but it will do as an example). Imagine a fictitious line like this one, ...
1
vote
2answers
267 views

Copying man pages from tmux copy mode

I am in xterm on Pangolin, inside a tmux session, in copy mode. I am trying to copy the text of a man page but what I yank into the clipboard by using the simple vi bindings of spacebar/enter is text ...
15
votes
4answers
5k views

tmux status-bar corrupted after catting a binary file, how to reset?

I accidentally screw up my tmux terminal after cating a binary file. Now my tmux is messed up. Detaching and re-attaching doesn't help, nor does a redraw (C-b r). Running reset only redraws the active ...
3
votes
2answers
1k views

Mutt new e-mail notifications in tmux window

I am on tmux, with mutt in an inactive window. If IMAP flags change on a message through external means, I see the visual bell and the status bar changes, drawing my attention to the e-mail client. ...
2
votes
0answers
163 views

How does one include the session-name in status bar for byobu-tmux?

I'd like to include the session name of my current tmux session in the status bar. There's nothing in ~/.byobu/status that allows me to do this and including the tmux configuration directive #S in the ...
6
votes
1answer
1k views

Tmux output is slower when vertical splits exist: why?

When I use Tmux and split the window into panes, I notice that programs are quite a bit slower to print out lines of text when there is vertical split (two panes side by side) than when there is a ...
16
votes
1answer
2k views

copy (to X clipboard) shortcut in .tmux.conf

In order to copy text to X clipboard in tmux, what I currently do is: go selection mode with prefix[ start selection with space (using mode-keys vi btw) select the text and press enter copy tmux ...
3
votes
1answer
920 views

Fixing scrolling in nano running in tmux in mate-terminal

The problem: I open a terminal (in Linux Mint, so mate-terminal) zsh is the shell Then I run tmux Edit a file with nano Scroll up and down that file with the cursor Issue: When scrolling down in ...
1
vote
1answer
804 views

How to bind “Ctrl-Alt-b” to the prefix of tmux?

Tmux uses Ctrlb as its prefix, but Ctrlb conflict with Emacs. I want to bind CtrlAltb to tmux's prefix. I guess it may be C-M-b but didn't work...
3
votes
1answer
261 views

Cut colored text ignoring color tags

My problem is similar to this one; I want to use cut to simulate a nowrap on tmux, but my output is colored. I know how many columns I want to keep (50) but I don't know how many color tags will be on ...
4
votes
2answers
631 views

how to change a pane to the main pane in tmux

In tmux, when i use main-vertical layout, it always selects the main pane that will be having the larger size. Is there any way we can make the current pane the larger size when using main-vertical? ...
4
votes
1answer
711 views

How to “jail” a user account's network capabilities on Linux?

Linux box a is connected to a home DSL line with dynamic DNS registration, hosting a tmux session to which multiple clients connect in read-only mode over SSH. All users connect using the same ...
6
votes
2answers
394 views

Execute a process in the current pane, redirecting stdio to/from the pane

GNU Screen has a command called exec that will launch a subprocess and optionally let you do things with its file descriptors, including tying them in your window. I frequently use :exec !! sx -b ...
7
votes
1answer
946 views

How to send-key to break out of scroll mode in tmux?

I have a key-mapping in VIM that looks like this: map <F5> :silent !tmux send-keys -t 0:0 C-m "python %" C-m<cr> When I press F5, vim runs my current Python script in tmux session 0, ...
8
votes
3answers
471 views

Is it possible to get a hardcopy in Tmux?

I keep flip flopping between tmux and screen, and right now I'm back on the tmux kick. I've been doing some setup for a friend, and I want to make a hard copy of the session so he can see the commands ...
0
votes
1answer
475 views

How start byobu with session splited horizontaly?

All is in the title. I can't get the right ~/.byobu/window file
8
votes
1answer
3k views

Tmux, change window pane by mouse click

Is it possible to use the mouse to navigate between different window panes which are split vertically or horizontally?
4
votes
1answer
892 views

tmux equivalent to GNU screen's :wrap mode

I'm a long time screen user trying to make the jump to tmux. One screen feature I use is the ability to truncate Ctrla :set wrap output. This is especially useful when tailing log files or following ...
11
votes
6answers
8k views

How can I set my default shell to start up tmux

I would like my default bash shell to go straight into tmux instead of my always having to type tmux every time.
10
votes
2answers
3k views

Unlimited history in tmux

In your .tmux.conf file you can set the window history with something like: set -g history-limit 4096 Is there a way to set an unlimited history for each window?
9
votes
1answer
880 views

Best Practices for SSH, tmux & GnuPG Agent

I'm attempting to consolidate my encryption software to GnuPG, and I'm running into a confusing problem. My primary unit is a headless server, and I exclusively work in tmux. There is no X session, ...
5
votes
3answers
648 views

Tmux makes a sound when I launch it, how could I disable that?

When I launch tmux in the terminal, is causes my Linux Mint to play a sound in the speakers. The sound is a Linux Mint system sound. Perhaps it's the "alert" sound, but I cannot identify it by name. ...
6
votes
3answers
546 views

Upload & Download speed in Tmux status line

Is there a way to get upload and download speeds in Tmux's status line?
6
votes
3answers
4k views

Having tmux load by default when a zsh terminal is launched

My current workflow is: CTRL+SHIFT+T to launch a new terminal window. That starts a new zsh terminal. Type tmux to start tmux. How can I have tmux load by default with a new terminal window?
11
votes
2answers
3k views

tmux session lost in unknown pts, cause and possible solution?

I was trying to re-attach to a long-running tmux session to check up on a python web-application. However tmux attach claims that there is no running session, and ps shows a tmux process (first line), ...
3
votes
1answer
215 views

Colour bleeds right when writing a custom script in byobu

I am using byobu with tmux backend in Ubuntu 12.04. I am trying write a custom script as shown at the manpage of byobu: #!/bin/sh printf "\005{= bw}%s\005{-}" "$(uname -r)" When being run (using ...