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
3answers
2k views

Tmux not sourcing my .tmux.conf

I installed tmux locally (without root priviledges). I also created my .tmux.conf file in my home directory with the following lines: unbind-key C-b set -g prefix C-o bind-key C-o send-prefix ...
12
votes
2answers
10k views

How do I get the solarized colour scheme working with gnome-terminal, tmux and vim?

There's a lot of questions around this, but it's because there are so many variables. I had to piece together instructions from many sites before I got this working. First, I could not easily set up ...
2
votes
1answer
476 views

Display current pane's current directory in status

Is there a way to update pwd in tmux status, instead of showing it in PS1? set -g status-left "#(pwd)" set -g status-interval 1 doesn't work.
0
votes
1answer
1k views

tmux exits abruptly right after loading

I just compiled my own version of tmux with libevent. Whenever I run tmux from zsh, tmux starts, but exits quickly returning [exited]. I read here that the problem could be my configuration for ...
0
votes
1answer
439 views

Unable to install libevent without admin priviledges

I just downloaded libevent-2.0.21-stable, which I am hoping to compile so that I can use tmux. However, when I run: ./configure --prefix=/path/to/libevent-2.0.21-stable/ make make install ...
3
votes
1answer
346 views

Tmux status bar question

I'm fairly new to tmux and to truly master and learn it, I decided to make myself a fresh .tmux.conf I was wondering, though, if it's possible to hide a path in the status bar. For example, I have ...
2
votes
1answer
221 views

Launch R code from within vim-r-plugin as separate window instead of inside tmux/screen?

I use the vim-r-plugin to write R code in vim. It is a nice plugin and I love that the plugin lets me run code directly from within vim. However, the R prompt is opened in a console which is ...
1
vote
2answers
119 views

Split tmux window with same command

I have a tmux window that I've open with a certain command. Is it possible to split that window with a new pane which also runs the same command, not the default command? The point is to avoid having ...
4
votes
2answers
255 views

How can I synchronize processes started in different TMUX panes?

Consider this: tmux split-window -d program1 program2 # this program depends on some side effects produced by program1 In this case, program2 will start before program1 is ready. program1 will send ...
6
votes
1answer
329 views

tmux status line with blank line on top?

I have a nice tmux status line, but I don't like how the bash/commands run flush along it...that is, if the screen is full, i'm typing things right above the status line. I'd like a one line break ...
2
votes
1answer
155 views

How can I find the valid values for TERM to use in tmux?

When starting tmux I need to pass a valid terminal type. Since I am scripting the initial startup of tmux I would like to cover all bases by figuring out the valid values of TERM on the current ...
2
votes
2answers
575 views

Changing tmux .bash_profile behavior

I have a script in my .bash_profile that prompts for X sessions to boot. When I launch tmux, I get this prompt that I had only intended for the TTY login. Is there something I can put in ...
4
votes
2answers
1k 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
6k 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
371 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
129 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 ...
8
votes
2answers
2k 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
790 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
402 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
621 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 ...
2
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 ...
6
votes
4answers
4k 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
191 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 ...
7
votes
1answer
845 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
647 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 ...
9
votes
2answers
5k 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
223 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 ...
5
votes
2answers
2k 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
876 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
415 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
624 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 ...
1
vote
1answer
580 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
103 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 ...
11
votes
1answer
933 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
178 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
163 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
255 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 ...
11
votes
4answers
4k 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
146 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 ...
5
votes
1answer
902 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 ...
15
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
761 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
606 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
235 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 ...
3
votes
2answers
570 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
587 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
335 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
795 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, ...