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

2
votes
0answers
12 views

Is it possible to share the tmux buffer across sessions?

I typically have 2-3 tmux sessions running on my server, and almost always have 2 up at a time, 1 on each monitor. Occasionally I want to take something I copied from one session and paste it into ...
0
votes
1answer
30 views

How to upgrade a package which has a newer version than the repository?

I've installed tmux from apt-get. I checked the version is 1.8. But when I directly go to tmux official site, I see the latest version is 2.0. How can I upgrade to 2.0? sudo apt-get install ...
-1
votes
0answers
16 views

List of tmux commands

How can grep through list commands applicable to bind-key tmux.conf? I want to find a correct replacement for this line: 9 bind-key Home start-of-line .tmux.conf: 9: unknown command: start-of-line
4
votes
0answers
45 views

How can I make tmux tell bash to display the *logical* version of the current directory in newly opened windows?

Background I'm using tmux 2.0, Ubuntu 14.04.2 LTS in VirtualBox. In my ~/.tmux.conf file I have the line: bind c new-window -c "#{pane_current_path}" to make tmux open new windows with the same ...
2
votes
4answers
3k views

Attach to tmux session and run a command

How I can run a command in Tmux when I'm attaching to a session ? I want attach and immediately run a command. I read the docs, but found only send keys, which not suits my needs.
2
votes
1answer
204 views

Let remote ssh session know about tmux?

Assume I run a tmux session on machine A and from it I start an interactive shell via ssh to machine B. I'd like to change machine B's PS1 to better suit the use from under tmux; for instance, I'd ...
0
votes
1answer
26 views

Quick jump to tmux session

Is there actually any way / plugin to be able to quickly jump to a session? Currently I <leader>s to open the session-list page and then I select the one I want. And if I have a session that ...
3
votes
2answers
43 views

Tmux - Get pane # of each pane in a window from a script?

Is there a way to find out the pane index of a particular pane in Tmux? I know I can run something like: tmux display-message -p "#{pane_index}" but that only works on the active pane. I want ...
4
votes
4answers
2k views

is there an alternative to tail -f that has convenient scrolling? [duplicate]

I'm usually inside GNU Screen or tmux, which doesn't give me excellent scrolling functionality. Is there an alternative to tail -f that allows me to quickly scroll up? A tool that is like most is to ...
1
vote
2answers
107 views

tmux blocks certain things on my Mac

I really like tmux and use it often so I set the following in my .zprofile: [[ $TERM != "screen" ]] && exec tmux so when I open a new window, tmux will be there for me. However, there are ...
0
votes
1answer
20 views

Set the active tmux tab color

Is it possible to change the background of the active (current) tmux tab? I'm using tmux 1.9 on Ubuntu 15.04. $ tmux -V tmux 1.9 I tried to do: set-option -g pane-active-border-fg red But the ...
0
votes
0answers
16 views

tmux doesn't resize with terminal window

When I resize a terminal window containing a tmux session, tmux doesn't detect this change, but continues to function normally within the old window boundaries. tmux ls shows no other attached ...
1
vote
1answer
39 views

How do I renice my login shell?

I'm on a multi user login-node, a front end node to a large national bioinformatics compute farm, running Linux. Many users misbehave by running computationally intensive jobs on the login-nodes. I ...
1
vote
1answer
27 views

tmux does not render borders properly

I am using tmux on a Gentoo Linux hardened system running kernel 3.18.9. When I run programs that display borders on the terminal such as nmon directly under my terminal or under screen, they display ...
17
votes
2answers
14k 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?
38
votes
3answers
8k 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 ...
9
votes
3answers
774 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 ...
0
votes
2answers
735 views

tmux with iterm2 attach a remote session

I'm using the Tmux integrating with ITerm2, which can create a tab in ITerm 2 for each window created by Tmux. But somehow this doesn't make much sense for the usual SSH scenario, where we first SSH ...
2
votes
2answers
100 views

passing tmux variable into shell-command in tmux.conf

I'm trying to edit my bottom left status section of tmux. I would like it to show Session: #{session_name} The current maximum length for this string is set at 20 using this setting ...
3
votes
2answers
3k 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?
1
vote
2answers
31 views

How to change the “niceness” (CPU priority) of a detached tmux session?

I made a very simple web crawler that writes output to the terminal (stdout), so I generally know how fast it's running. After I detach from tmux and check the MySQL table, it seems the script is ...
1
vote
1answer
31 views

bash show-all-if-ambiguous turns on spontaneously

I am using tmux and bash. I find that, at seemingly random intervals, my running shells have show-all-if-ambiguous set to on. This is a significant annoyance to me, since many of my operations are in ...
1
vote
3answers
115 views

VIM solarized color scheme looks wrong when using tmux

I am trying to use the solarized color scheme in VIM using gnome terminal (Ubuntu). When I run vim without tmux, it looks great, see below: If I add the following commands to my .bashrc # tmux ...
51
votes
4answers
16k views

Write all tmux scrollback to a file

How can I write all the scrollback in a tmux session to a file? capture-panel can grab the current screen, but not the entire scrollback.
5
votes
3answers
4k views

How do I run a shell command from .tmux.conf

How do I run a shell command from .tmux.conf, or otherwise automatically when tmux launches, without having to hit any other command? How can I create an alias, a function, or a script which boils ...
0
votes
1answer
108 views

How to execute a remote command to an existing ssh session

I'm trying to get basic informations on my local machine from ssh connections. The purpose here is to get the current user, hostname, current working directory in my tmux status bar. I've enabled ...
1
vote
0answers
32 views

How to use vim-slime from within a single tmux session?

I'm trying to integrate ipython and vim through a single tmux session using the popular vim plugin "vim-slime." The problem is that while I can get it to work fine provided that vim is opened in a ...
0
votes
0answers
398 views

tmux unable to start a new session? “1;2c”

Introduction I just installed tmux onto my CentOS 7 machine, but I have encountered a bewildering issue. Whenever I try to attempt to start up a session using tmux or tmux new -s session-name, it ...
26
votes
6answers
7k 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 ...
5
votes
3answers
709 views

How do I know the name of a tmux session?

Recently, I started using tmux. I find it nice, but I'm still having issues understanding this application. One of the basic questions I have is: How do I know (from the command line) what is the name ...
57
votes
4answers
15k views

What are other ways to share a tmux session between two users?

I'm looking for a clean and easy way to share a tmux session with another user on the same machine. I've tried the -S socket-path option, but it requires opening up all permissions of the socket-path ...
1
vote
1answer
25 views

Spawn another terminal running tmux (from a terminal running tmux)

I'm currently using urxvt with tmux, run as such: urxvt -e tmux I wish to start up a completely separate instance of urxvt -e tmux (another urxvt, also running tmux) using the terminal. (More ...
5
votes
5answers
11k views

How to start tmux with attach if a session exists

If I use tmux attach I can attach to a running session but if there is no session running, I only get the error no sessions How can I automatically start a new session if there is none running? ...
0
votes
2answers
47 views

How to set tmux terminfo to screen-256color? [duplicate]

If I do not use tmux my terminal is the following: ~$ echo $TERM xterm If I use tmux by adding the following into .bashr # tmux configuration tmux attach &> /dev/null if [[ ! $TERM =~ ...
6
votes
1answer
217 views

How to change background color of a pane in tmux?

I would like to change the background color of the inactive panes in tmux to better distinguish between the active pane and inactive panes. Something just a few shades different than the default. How ...
0
votes
1answer
24 views

Auto opening my dev environment with byobu and tmux

When I launch byobu (I'm using tmux), I'd like to open 3 tabs/windows in byobu and launch these commands for each window: 1) cd ~/Dev/backend; vagrant up; vagrant ssh 2) cd ~/Dev/frontend; vagrant ...
4
votes
1answer
573 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
106 views

Systemd with rtorrent in tmux

I have been unable to get tmux & rtorrent running with a systemd service file. My rtorrent.service: [Unit] Description=rTorrent Documentation=https://github.com/rakshasa/rtorrent ...
0
votes
0answers
61 views

tmux status bar path customization with sed

On the server I connnect to my home path is like this:/home/junk1/junk2/user. I can use the sed command pwd | sed -e 's|^/\([[:alnum:]]*\)/[[:alpha:]]*/[[:alpha:]]*|/\1|' to shorten the directory path ...
9
votes
2answers
2k 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 # ...
0
votes
0answers
42 views

tmux option `xterm-keys` does not enable control+arrows

I cannot make tmux recognize Ctrl-◄ sequence differently from just a left arrow, and the same for the right arrow too. In my ~/.inputrc, I have mapped these sequences (as issued by 2 different ...
0
votes
0answers
20 views

tmux sending strings instead of commands?

I want to send the key combination Ctrl+b, then : to tmux to access the tmux command prompt in the other session. However, when I use the command tmux send -t session C-b : it instead sends the ...
8
votes
2answers
2k 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?
27
votes
3answers
5k views

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 ...
15
votes
6answers
21k views

How can I page up or down in tmux with Terminal.app?

I have tmux installed. But I can not scroll up or down. I.e. as soon as I tmux I get only a portion of the screen and can not scroll up. crtl-b + Page Up does not work since I am in Mac and I can not ...
6
votes
2answers
1k views

Using environment variables 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 ...
1
vote
1answer
74 views

Background color mismatch in vim and tmux

I'm having trouble getting the full range of colors to work in vim when I'm running through tmux. I belive that it's some sort of trouble with TERM variables or 256colors, but I've done everything I ...
4
votes
1answer
51 views

stty settings are pathologically altered

I just set up a new computer, and as usual had to alter the settings in xterm in order to make the delete keys work properly. (Ctrl-H sends ^H, backspace sends ^?, delete sends ^[[3~. This is, of ...
1
vote
1answer
30 views

How to have tmux on startup for both OSX and Ubuntu (including Quake)

I recently updated my Ubuntu 14 system and the update has made it impossible to have tmux started up automatically. In fact the previous setting made it impossible to log into my Ubuntu account(!), ...
5
votes
1answer
86 views

Share a buffer between tmux / vim splits

+-------------+ | | | 1 | | | |=============| | | | 2 | | | +-------------+ Each tmux split has vim open. I would like to do ...