tmux is a terminal multiplexer, which allows users to work with terminals in terms of windows and panes, which can be created, destroyed, attached, and reattached at will.

learn more… | top users | synonyms

78
votes
1answer
22k views

tmux - How do I rename a session?

When I first started using tmux, I didn't give my first session a name. Then, as I started creating different sessions for different tasks (work, play, etc), I started naming my sessions. Now I have ...
0
votes
0answers
10 views

Tmux waits after switching panes

I have been using tmux for a while now, but this issue only seemed to really appear after switching machines. When switching panes directionally using prefix + arrow keys, tmux waits for a little ...
0
votes
1answer
26 views

tmux on Windows (msys2) and non-admin fails

Whe trying to run tmux as a non-admin I'm greeted with failed to connect to server: Permission denied It works fine when running msys-bash-mintty as administrator though. Where should I start ...
14
votes
3answers
2k views

Is there an easy way to save a byobu session such that I can reload it after a reboot?

I understand that there is a way of defining windows that are opened in a session by saving configuration files in $BYOBU_CONFIG_DIR. But is there a way (command or script) to save the current session ...
1
vote
2answers
403 views

Is there a way to persist tmux sessions across reboots?

In particular, can the tmux session data be written to a file, and reloaded on reboot? I'm thinking of something similar to Vim's mksession command.
0
votes
0answers
5 views

Can't scroll back after cat with mosh, tmux and iterm2 setup

My setup is the following: https://filippo.io/my-remote-shell-session-setup When I do apt-get update on my server I can see all the output and am also able to scroll back as I expect. When I do cat ...
19
votes
1answer
2k views

Can't resize vim splits inside tmux

Everything is working fine outside of tmux. But in tmux I can't resize vim splits with the mouse. I have set mouse=a in my .vimrc. Is there a solution for this? .tmux.conf: $ cat ~/.tmux.conf ...
0
votes
0answers
9 views

tmux' “run-shell” blocks for background processes

I'm using tmux version 1.9a and I noticed that run-shell blocks using of any prefix-key commands until the command terminates. To reproduce this just execute run-shell "sleep 10" and try to ...
0
votes
1answer
24 views

Tmux + mutt not redrawing

I've recently switched to mutt, but have been using tmux for a year or so now. Mutt seems to have occasional issues redrawing, for example if I delete a bunch of email using d and then persist the ...
0
votes
1answer
33 views

Cannot copy from Vim under Tmux into clipboard using "+p on Ubuntu

I'm using zsh, tmux, and Vim and for some reasons recently, I've noticed I cannot copy from Vim to X clipboard under tmux using "+y. Any idea how I can troubleshoot this issue? It used to work before. ...
2
votes
2answers
176 views

Tmux - Check if server is up

Is there any known tmux-function, like tmux has-session -t <session>, but to check if the tmux server is currently running? It would be handy when writing automation-scripts. When checking if a ...
0
votes
2answers
16 views

how to zoom a pane in config using tmuxinator

So what i want is to start a tmux session using tmuxinator and the vim pane would be zoomed in (prefex + z) but how can I specify that in tmuxinator ? name: app root: ~/work/app windows: - rails: ...
4
votes
2answers
218 views

Unable to launch application in tmux

I get this error when I try to launch Sublime Text or SourceTree from tmux: $ subl Unable to launch Sublime Text 2 $ stree Unable to open SourceTree It seems that I can't open os x apps either: $ ...
1
vote
1answer
36 views

How to set Vim inside Tmux as default system editor? (Linux)

At all times I have Tmux running, with Vim inside it. I want text files to be by default opened in that Vim instance, and not a new one. I presume I need to somehow change the default text editor as ...
5
votes
2answers
823 views

Is it possible to change the background color of the tmux pane or window?

I would like different panes to appear in different background colors in my tmux session. Is this possible?
39
votes
4answers
21k views

256 color support for vim background in tmux

while using vim within tmux I can see that 256 color support is enabled. with $tput colors However changing the colorscheme in vim while in tmux will change the colorscheme on a per line basis but ...
1
vote
1answer
11 views

tmux multiple instances of the same session

I've recently converted from gnu-screen to tmux. I am struggling with 1 thing. My workflow is something like this. I create a session for each "task" I am doing at any point in time. That way I can ...
17
votes
1answer
7k views

Use terminal scrollbar with tmux

I know how to scroll in tmux using the keyboard, but I noticed that it looks like there's a way to use the terminal scrollbar with GNU Screen. Can this be done with tmux?
2
votes
0answers
13 views

Attach to the same tmux session from different nodes of a cluster

I'm working on a computing cluster which has several hundreds of nodes. A load-balancing scheme picks an idle node to login to when ssh-ing into the cluster. As a result, it is very unlikely to ...
0
votes
1answer
54 views

Tmux status sed output different from cli

I've been looking at this for a while now, but I cannot find a reason. When I run the following in a cli, it works as expected: $ uptime | sed "s/.*average: \(.*\), \(.*\), \(.*\)$/\1 \2 \3/g" 0.65 ...
0
votes
0answers
10 views

tmux key-binding doesn't work over ssh

I am using iterm2 on a Mac, the tmux key binding works well if I start tmux locally. In particular, the Alt + arrow to switch panes. bind -n M-Left select-pane -L bind -n M-Right select-pane -R bind ...
2
votes
2answers
1k views

Weird behaviour/rendering on tmux in osx

I've been having this issue for some time now, and it is really annoying, but I can't figure out what's wrong. When I start a tmux session on my terminal, no matter if it is on Terminal.app or iTerm2, ...
3
votes
2answers
213 views

tmux freezes when using ctrl-prefix ctrl-y

I'm using a custom .tmux.conf file which looks like this: unbind-key C-b set -g prefix C-a bind-key C-a send-prefix set-window-option -g mode-keys vi bind-key -t vi-copy 'v' begin-selection bind-key ...
0
votes
0answers
6 views

increase tmux buffer size for an existing pane

I started a job two hours ago that will run for ~16 hours, in a tmux pane. But I am realizing that I have only a 100k lines buffer history and that the output will be bigger than this. Thanks to ...
0
votes
0answers
14 views

OS X terminal eating the shift key

I'm switching from iTerm 2 to the stock OS X 10.8.5 terminal (work policy, iTerm isn't on the approved software list). In my tmux configuration, I've mapped shift-left and shift-right to change ...
1
vote
1answer
48 views

GNU Screen/tmux equivalent for Windows for remote text console (not GUI) connections

Short question: is there any terminal multiplexer that runs in a Windows CMD shell? I suppose PowerShell could be enough too. Complete question: I have a Windows 7 SP1 on a powerful computer ...
3
votes
1answer
2k views

tmux: enable mouse scrolling in vim instead of history buffer

I have just started using tmux 1.8 recently, after working with screen for a while. After reading things here and there on the internet, I came up with following ~/.tmux.conf However when I open vim ...
0
votes
1answer
55 views

Bind keys over SSH to switch tmux tabs

I typically have 4 or 5 tmux "tabs" (aka tmux windows) open. They are created by pressing Control+B, C In many applications you can Control+Tab to switch between tabs (or internal windows, or ...
5
votes
2answers
463 views

LSOpenURLsWithRole() failes with error -10810 on Yosemite from within tmux

Trying to open an application from the commandline (terminal.app), inside tmux (installed through macports, version 1.9a), and getting the following result: $ open /Applications/Adobe\ Reader.app/ ...
2
votes
3answers
850 views

Get Ctrl+Arrow to work under tmux+urxvt

I have tmux command key as C-a. C-Left/C-Right to jump between words (or whatever it is called) works just fine in urxvt alone, but under urxvt/tmux it'll print '5D' and '5C' for Left/Right ...
5
votes
1answer
256 views

Tmux doesn't respond to scroll in OS X Yosemite Terminal

Recently, I updated to OS X Yosemite and was delighted to find out Apple has added mouse support to their Terminal app. This works great in a standard Terminal window scrolling through my history and ...
0
votes
0answers
10 views

screen+emacs conflict on ESC key

I have a problem in running emacs -nw inside a screen session. In this setup, pressing ESC followed by any key behaves like pressing CTRL+KEY together. For example, pressing ESC followed by k will ...
0
votes
0answers
45 views

tmux split panes not rendering properly in Conemu

I'm trying to use tmux over ssh (cygwin) in conemu, and keep running into the following issue. I'll start with a vertically split screen that seems to be fine: And switch to the right split, hit ...
119
votes
9answers
34k views

How do I reorder tmux windows?

In screen, I can just type C-a :number 0 to move a window to the top of the window list and push all the other windows down one. What's the equivalent command sequence for tmux? I looked at the man ...
0
votes
1answer
27 views

Tmux: no pane 'zoom' indication after customising status bar

My customised .tmux.conf file looks like this: tmux.conf When I zoom inside a pane in Tmux, I have no 'Z' indication beside the pane title in the status bar. I assume it's because I customised my ...
6
votes
2answers
551 views

How to show current mode in status-line in tmux?

In vim: :set showcmd tells me what key I've typed(such as f). In tmux: after typing Ctrl-b, I stop to think about the next key I need. Sometimes I forgot I've typed Ctrl-b, so I type it again, it ...
0
votes
1answer
50 views

How to configure tmux/iTerm to display session name as title in terminal tab?

I am getting started using tmux and iTerm2 on Mac OS X. Currently, all my tabs are titled "tmux" (assuming it's just displaying the process name) which makes it difficult to find the tab that I want. ...
1
vote
2answers
346 views

How to use Console2 with tmux

I am able to start tmux using the mintty terminal included with cygwin. However, when using Console2 (running on 64-bit windows 7 and using C:\cygwin64\bin\bash.exe as the shell), I get the following ...
0
votes
0answers
29 views

undefined reference to __b64_ntop: tmux compilation error on centOS

I've got tmux at http://tmux.sourceforge.net/. And I've read README carefully, installed all dependencies( libevent, ncurses-dev...). But when I ran "make" command, it showed an error like the ...
1
vote
1answer
18 views

Run a script or program when a monitor triggers in tmux?

In tmux, instead of (or in addition to) simply changing the status line when an activity/content/silence monitor triggers, is there a way to run a script or program?
1
vote
3answers
45 views

What does the “first pid of a pane” in tmux mean?

The entry in the tmux manpage's list of available variables for pane_pid reads as follows: pane_pid PID of first process in pane However, according to run or send a command to a ...
2
votes
1answer
113 views

Case insensitive search in tmux's copy mode?

So in tmux's copy mode you can search text with the ? (at least if it's in vi mode). However, it only finds matches with the same case. I also want matches that have a different case. So, when I ...
1
vote
0answers
37 views

Arrow keys work like option+arrow in terminal in tmux on osx

The following setting in .tmux.conf breaks arrow keys in terminal in tmux: set-window-option -g xterm-keys on When I disable this setting, then arrow keys work as expected in terminal but then they ...
1
vote
0answers
47 views

Create custom command in tmux

I know how to bind a key to a command in tmux, but I want to create a custom command (that you can type with prefix key + colon). In this custom command, I want to execute a couple of other commands. ...
0
votes
1answer
48 views

Vim yank to tmux clipboard

I see a lot of explanations of how to make vim copy to the system clipboard (involving xclip for linux or pbcopy or OSX), but I would like to yank to the tmux clipboard. To be clear, what I want is to ...
0
votes
1answer
27 views

Confirm a tmux option is set

I am having the problem described in this related question and this one. Summary When I have a tmux pane that outputs a serious amount of text, tmux becomes unresponsive. All tmux commands are ...
1
vote
1answer
31 views

Mutt checking incoming mail in tmux

I've been using mutt and liking it. I work with tmux, and one issue that I've had is receiving notifications of incoming emails (via mutt's beep_new setting). I've got the mail_check and timeout ...
-1
votes
1answer
19 views

How send tmux prefixer to remote server using iterm2

This is my first time using tmux and I have a problem. I have a remote server that I am connecting to it using ssh(using iterm2). Since opened, when I try to send commands like ctrl+b+c command+b+c ...
1
vote
1answer
24 views

Join lines in tmux's copy mode

In screen there is this really nice feature that you can join the lines you've selected in copy mode. You do this by hitting Shift + J in copy mode. If you press it again it will add a space as a ...
4
votes
3answers
563 views

gnu screen - get list of window titles

How can I obtain information (title, created time, visible content) about windows in a screen session? I need to do this in a script, so I am not looking for key bindings or interactive commands. ...