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

8
votes
3answers
393 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
418 views

How start byobu with session splited horizontaly?

All is in the title. I can't get the right ~/.byobu/window file
6
votes
1answer
2k 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
705 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 ...
9
votes
6answers
6k 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.
9
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
740 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, ...
4
votes
2answers
519 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
478 views

Upload & Download speed in Tmux status line

Is there a way to get upload and download speeds in Tmux's status line?
5
votes
3answers
3k 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?
10
votes
2answers
2k 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
195 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 ...
1
vote
2answers
2k views

Run tmux always when I open terminal

I usually open lxterminal with bash shell where I usually type tmux command first. I'd like to have launched tmux command automatically, so I tried to add this command to ~/.bash_profile or to ...
6
votes
1answer
2k views

Vim not running inside tmux

When I try to open a file using vim inside tmux the whole window freezes. I have to kill the window with C-a &. Here are my ~/.vimrc settings: :set autoindent :set ts=4 :set number :set ...
7
votes
3answers
1k views

Does a terminal multiplexer have any benefit when used with a tiling window manager?

Both terminal multiplexers (screen, tmux) and keyboard-driven tiling window managers (ratpoison, dwm, xmonad) provide similar functionality. Is there any benefit in using both at the same time? What ...
3
votes
3answers
727 views

tmux after start

Can I configure tmux so it will after running tmux automatically opens two windows named src and cmd? I always type after starting it: prefix + c, prefix + ,srcENTER prefix + c, prefix + ,cmdENTER ...
1
vote
1answer
177 views

Remap select window 2 in tmux

In tmux you can switch to window 2 with prefix_key + 2. I'd like to press rather prefix_key + u. I tried in .tmux.conf this: bind-key u 2 and this: bind-key u select-window -t 2 Which doesn't ...
1
vote
1answer
1k views

Change tmux prefix control keyboard shortcut to alt keyboard shortcut

Is it possible to change the tmux prefix keyboard shortcut ctrl+B to alt+B?
7
votes
2answers
1k views

Aliases and tmux

Aliases defined in .bash_aliases and .bashrc don't work in tmux. Can this be changed in some configuration, so the aliases work under tmux?
7
votes
2answers
2k views

Terminal 256 colors don't work through Tmux [duplicate]

Possible Duplicate: Getting 256 colors to work in tmux I want to set my terminal to 256 colors. I normally use the Gnome terminal which is shipped by default in Ubuntu but I also downloaded ...
16
votes
1answer
2k views

How do you make tmux count windows starting with 1 instead of 0?

I was able to make GNU Screen start counting windows with the number 1 instead of the default 0 with this code in my .screenrc: # Get rid of screen 0 bind c screen 1 bind ^c screen 1 bind 0 select 10 ...
5
votes
1answer
508 views

Escape sequences in output of script called from ncurses application

I'm currently running mcabber as my Jabber client (which uses ncurses) in a tmux session on my homeserver. Locally i run iTerm2 as a terminal emulator, which supports the triggering of growl ...
1
vote
0answers
224 views

How to use comma as tmux's prefix

Under screen, I used: bindkey , command to use the comma as the prefix instead of Ctrla. If I do set -g prefix in tmux, it complains saying: unkown key At first, I believed that tmux did not ...
3
votes
1answer
1k views

tmux on startup and ssh-agent forwarding issue

I've added the following lines (taken from here) to my .bashrc to automatically start a tmux session on login: if [ "$PS1" != "" -a "${STARTED_TMUX:-x}" = x -a "${SSH_TTY:-x}" != x ] then ...
1
vote
1answer
2k views

Tmux border split in rxvt

I'm attempting to connect to my Arch server running tmux from my work Windows PC. I've found that while Console2 does a decent job with most things, it's not perfect, and I get all sorts of graphical ...
6
votes
4answers
3k views

Is there a tmux equivalent of “screen -D -R”

I would like to know if there is a way to get tmux to behave like screen -D -R so I could say, have the command as a default command in Putty. These screen switches would force detach of an existing ...
4
votes
2answers
620 views

Can I make Tmux tell Vim when its pane loses focus?

I use Vim and Bash side-by-side in Tmux. I have Vim configured to autosave files as I switch between them, but I'd really like it to autosave when I switch to the Bash pane. Is there a way to get ...
31
votes
3answers
6k views

How do I equally balance tmux(1) split panes?

I'm looking for a behavior that is similar to how vim(1) handles its split windows with ^w =. I know tmux(1) has predefined layouts with ^b Meta[1-5], but this likely does not have the layout that I ...
1
vote
1answer
229 views

Background script run at login interrupted when I run tmux in terminal

In ~/.profile I run a script in the background (redshift for changing the screen temperature at night time). After logging in, I can open a terminal, and run tmux. However, at this point, redshift ...
5
votes
1answer
348 views

How do I prevent tmux from wrapping around when searching?

When I am in edit mode in a tmux pane and I do a search, once it reaches the end, it goes back to the beginning. Is there any setting to prevent this?
8
votes
1answer
869 views

tmux disable confirmation prompt on kill-window

I've looked through the man pages so this might be asking in vain. I get annoyed at the confirmation message for kill-window (Ctrl-b & or Ctrl-b kill-window on the default setup). This always ...
3
votes
0answers
132 views

What do you use to manage your shell history? [duplicate]

Possible Duplicate: Preserve bash history in multiple terminal windows Can I easily search my history across many screen windows? I rely on my shell history a lot, I use Ctrlr and arrow ...
15
votes
4answers
4k views

How to get vim to work with tmux properly?

I'm trying to figure out how to get vim and tmux play together. My problem is: When I use xterm-256color I get vim to work nicely, but the background doesn't render properly. I fixed this by using ...
9
votes
2answers
612 views

Two prefix commands for tmux?

We have a tmux session that several people need to connect to. Some people like the Ctrl+a prefix shortcut and some people prefer the default Ctrl+b shortcut. Is there anything I can put in the ...
2
votes
1answer
2k views

How to verify if tmux is properly installed on Mac OSX

I've just tried installing tmux from source (via installing libevent first). The installation seemed fine, without throwing any obvious error. But when I typed tmux in iTerm2, it returned "command not ...
5
votes
2answers
1k views

Send a command to a running tmux session (like screen -X)

I'm looking to switch from screen to tmux for my terminal multiplexing needs, but there's a feature of screen that I need to replicate in tmux: the -X option, which allows one to run arbitrary screen ...
32
votes
3answers
9k views

Write all tmux scrollback to a file

How can I write all the scrollback in a tmux session to a file? (I know that, ex, capture-panel can grab the current screen… But I want the entire scrollback)
14
votes
3answers
3k views

Shift-arrow not working in emacs within tmux

I recently started using tmux (was a screen user before) and I'm loving it, except for one small problem. I use emacs within my tmux session and I am used to using Shift-arrow keys to move between ...
21
votes
1answer
4k views

Attach to different windows in session

I have a pretty simple tmux session running with two open windows; one of them for local hacking and one of them for work. What I'd like to do is to simply connect to the hacking window while ...
11
votes
3answers
3k views

ESC key causes a small delay in terminal due to its Alt+ behavior

My terminal setup is gnome-terminal + tmux + zsh with vi bindings. In applications like vim or even in the zsh's command line vi editing mode, I need to frequently hit the ESC key but there is a ...
25
votes
3answers
4k views

Renumbering windows in tmux

I frequently end up with more than ten windows in tmux. Later on, I close some of my older ones. Is there a way to renumber, say window 15, to window 3 (which doesn't exist anymore)? Or to pack them ...
6
votes
1answer
1k views

How do I highlight a search result in tmux?

When I search a terminal window in tmux, it sets the cursor the keyword search, but doesn't highlight the matching word. Screen used to do this, and it was much easier to visually find a match. ...
0
votes
1answer
431 views

Tmux not scaling to fill the window [duplicate]

Possible Duplicate: Tmux viewport caused by multiple concurrent sessions I have a weird issue where tmux isn't scaling to fill the window it's in: I haven't had this issue before, is ...
4
votes
2answers
2k views

Convert gnu screen status line to tmux status line

I am using the following screen status line, configured in my screenrc: I configured it using the following line: hardstatus alwayslastline hardstatus string '%{= kG}[ %{G}%H %{g}][%= ...
1
vote
1answer
892 views

In Openbox, is it possible to execute a command in a matching window, or open a new one if no match exists?

Essentially, I'm looking for a way to keep one terminal open running tmux, and open new windows inside of the session rather than spawning new terminals. On pushing a key sequence, I'd like to open a ...
8
votes
3answers
3k views

Using Ctrl+B in less within tmux

I use the Ctrl+B command prefix in tmux, however this clashes with Ctrl+B in less, which is used for scrolling up a file. How can I get this to work? Do I have to set a different command prefix in ...
4
votes
2answers
669 views

Prevent tmux from starting up on SSH

I would like tmux to create a new-window when I ssh onto a machine from an existing tmux session. However, I do not want a tmux session started on the new machine! I have the following in my .bashrc, ...
11
votes
2answers
2k views

Prevent pane/window from closing when command completes - tmux

In my tmux.conf file I have it configured to open windows, name them, setup panes etc.. etc.. However one issue I have is that if one of the panes launches a command, let's say ls, then the pane ...
6
votes
3answers
370 views

Why might tmux only be capable of attaching once per shell session?

I'm using tmux on a Fedora 8 server (workplace restriction) to monitor several boxes on a stress rack. I noticed that I can only attach to my detached tmux session once per shell session. In order ...
3
votes
1answer
816 views

How to run streamripper and mplayer in a split-screen X terminal, via a single script

I want to run streamripper in its own X Terminal (window), then split the terminal horizontally, and then run mplayer in the lower half. This is simple enough to do manually, but getting a script to ...