Questions tagged [tmux]

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.

tmux is intended to be a simple, modern, BSD-licensed alternative to programs such as GNU screen.

When tmux is started it creates a new session with a single window and displays it on screen. A status line at the bottom of the screen shows information on the current session and is used to enter interactive commands.

A session is a single collection of pseudo terminals under the management of tmux. Each session has one or more windows linked to it. A window occupies the entire screen and may be split into rectangular panes, each of which is a separate pseudo terminal


Resources


Related tags

1849 questions
67
votes
5 answers

Fix Vim + Tmux yank/paste on unnamed register

While using vim inside a tmux session I cannot yank or paste to the unnamed register. Going to a named register works fine, but unnamed never works. Error is: E353: Nothing in register * Without tmux, vim works fine using my current settings. How…
Jason
  • 3,736
  • 5
  • 33
  • 40
66
votes
7 answers

tmux: open terminal failed: missing or unsuitable terminal: xterm-256color

I used home-brew to setup tmux on a mac. When trying to run tmux I keep on getting this error open terminal failed: missing or unsuitable terminal: xterm-256color any suggestions?
user3256740
  • 669
  • 1
  • 6
  • 4
65
votes
4 answers

tmux status bar configuration

How is the status bar is customized? I noticed in this youtube video (at 3:05 - image below), the status bar looks very different than the default one that I see after installing tmux on my Mac OS X. In particular, I like how the middle of the…
user131441
64
votes
11 answers

How can I make TMUX be active whenever I start a new shell session?

Instead of having to type tmux every time, how could I have tmux always be used for new session windows? So if I have no terminal windows open and then I open one, how can that first session be in tmux? Seems like a .bashrc sort of thing perhaps?
Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
63
votes
1 answer

How do I jump to double-digit window number in tmux?

Normally, I can jump to a window in tmux using Prefix-N, where N is my window number. Unfortunately, if N is number of like 10, it will just jump to window 1. How can I jump to Window 10 instead?
merlin2011
  • 71,677
  • 44
  • 195
  • 329
60
votes
5 answers

tmux: how to toggle "on" and "off" options with the same key

This is a bit of my tmux.conf cat tmux.conf ... bind a set-window-option synchronize-panes on bind b set-window-option synchronize-panes off As you can see, sync and unsync options for panes are bound to two different keys. Is it possible to toggle…
facha
  • 11,862
  • 14
  • 59
  • 82
59
votes
3 answers

Ugrade tmux from 1.8 to 1.9 on Ubuntu 14.04

I was just adding tmux plugins to my .tmux.conf file to find out that one of the plugins (tmux-copycat I think) requires tmux 1.9. When I start tmux I get the message `Error: Tmux version unsupported. Please install tmux version 1.9 or greater!". …
Dave Remy
  • 834
  • 2
  • 8
  • 10
58
votes
15 answers

How to write if statement in .tmux.conf to set different options for different tmux versions?

I have a .tmux.conf which I use on different machines with different tmux versions installed. I want to set different mouse options, depending on the tmux version. On one machine I have version 2.0 on the other 2.1. I do not get his part right if…
mrt181
  • 5,080
  • 8
  • 66
  • 86
56
votes
6 answers

"libevent not found" error in tmux

I am trying to install tmux in my Scientific Linux release 6.5 (Carbon) machine These are the steps I followed wget http://downloads.sourceforge.net/tmux/tmux-1.9.tar.gz tar xvzf tmux-1.9.tar.gz 
 cd tmux-1.9 ./configure 

At this step it's…
Anand
  • 1,067
  • 3
  • 11
  • 24
56
votes
2 answers

Bind Ctrl+Tab and Ctrl+Shift+Tab in tmux

I'm trying to a get a ctrl+tab and ctrl+shift+tab binding to work inside of a tmux session (I'm also using PuTTY). I already went through the pains of having to recompile PuTTY so it would send ctrl and shift correctly. After using ctrl+v, and I'm…
dook
  • 1,213
  • 1
  • 13
  • 30
56
votes
4 answers

Using Emacs server and emacsclient on other machines as other users

I know that after I call (start-server) inside an existing Emacs session I can then use emacsclient -c (on the same computer) to create new frames that connect into that server, so that each new frame created by emacsclient has access to the same…
Paul Whittaker
  • 3,817
  • 3
  • 25
  • 20
55
votes
5 answers

Change background color of active or inactive pane in Tmux

Are there any options to control the background color of the active or inactive panes in Tmux?
Elijah Lynn
  • 12,272
  • 10
  • 61
  • 91
53
votes
1 answer

Complete tmux reset

I was wondering if it is possible to completely reset tmux (the UI mainly) ? I have tried deleting my ~/.tmux.conf and reinstalling tmux it but I always ended up with the same status bar I had defined.
h.demoff
  • 2,199
  • 2
  • 12
  • 12
49
votes
7 answers

Tmux: Switch the split style of two adjacent panes

I realize that reshaping pane layout in general is not trivial to describe, but I'm interested in at least being able to swap the layout of two adjacent panes. Suppose I've got these panes laid out like this _____________ | | | | | …
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
45
votes
2 answers

Vim: Difference between t_Co=256 and term=xterm-256color in conjunction with TMUX

I am testing the various different terminals that I tend to use to SSH into Linux boxes that I have Tmux set up on. Basically I noticed this behavior, and I am hoping that somebody could offer an explanation of what's going on. Now it may be the…
Steven Lu
  • 41,389
  • 58
  • 210
  • 364