tmux is terminal multiplexer software, allowing users to work with terminals using multiple windows and panes, which can be created, removed, attached, and reattached as needed.

learn more… | top users | synonyms

22
votes
5answers
5k views

tmux slow to interrupt process with Ctrl-C

If I run a command with a lot of output in tmux, but decide to cancel it with Ctrl-C, there's a 10-15 second lag before it stops. However, if I do the same thing outside of tmux, it stops immediately. ...
5
votes
3answers
146 views

tmux — naming windows and selecting them via fuzzy matching

I want to be able to name my tmux windows and select them using fuzzy matching (similar to LustyJuggler or Ctrl-P in vim). Is this possible with tmux?
155
votes
2answers
48k views

How do I rename a session in tmux?

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 ...
57
votes
18answers
38k views

What's the least conflicting prefix/escape sequence for screen or tmux?

Screen goes with Ctrl+A. tmux on the other hand—as developed within screen—uses Ctrl+B. Both keystrokes, however, are also used in editors, shells, etc. Thus choosing either one degrades ...
0
votes
1answer
9 views

tmux how to force kill-session

I use tmux on mac os x 10.11.5 but suddenly it stopped working correctly. When i type tmux it does keep attaching to my grouped tmux session "ruby" instead of creating a new one. $ tmux ls ruby: 2 ...
0
votes
0answers
5 views

how to bind `<prefix>+,` to F5?

I tried: bind -n F5 rename-window but tmux is angry when it reads the conf file. how to achieve what I want?
1
vote
0answers
12 views

Ctrl-b does not work

With Bash now being available on Windows I tried using tmux, but Ctrl + b + [other key]` does not work for me or any of the other key combinations. As far as I can tell Windows is not overriding the ...
15
votes
5answers
17k views

bind tmux prefix to OS X cmd key (or any other binding)

I'm used to iTerm2 (or Terminal.app for this case) on OS X. But I want to move to use tmux (or screen, but the problem is similar to both apps). So my idea is to have a single iTerm tab with a tmux ...
1
vote
0answers
25 views

Create tmux session in seperate shells

I'd like to use tmux sessions to manage windows / panes in different shells. What I've noticed is that tmux will always use the shell from which it was first launched for all subsequent sessions ...
0
votes
1answer
13 views

tmux does not trigger when placed in rc.local

I want to start a tmux on boot on a raspberry pi - 2. I have written a session.sh file and I have places it in ~/bin/ file which is in the home directory. This ~/bin/ is also included in the $PATH and ...
11
votes
8answers
15k views

rename tmux window name to prompt_command, ps1 or remote ssh hostname?

I would love to be able to have my tmux window title automatically renamed to prompt_command, ps1 or just the hostname of a machine I ssh to. having 9 windows opened labeled "ssh" is really useless. ...
2
votes
1answer
598 views

Display escape characters in tmux

I have a script on my mac that displays the battery level with some color output. The color is based on the battery leve. As the level goes to zero, the color goes from green to red: #!/bin/bash ...
2
votes
1answer
191 views

sz and rz fail to transform files in tmux?

I use xshell to SSH to a Linux remote server—running Red Hat Enterprise Linux AS release 4 (Nahant Update 3)—without root. There aren’t any problems to use sz, rz to transform my files until I start ...
1
vote
0answers
13 views

Bash&TMUX - Continue after error

I want to write a bash script which opens new window in certain tmux session, runs another script in it and then closes. The problem is, if I launch two instances of the script, I want the script to ...
5
votes
2answers
1k 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
1answer
58 views

Scrolling on Mac with Tmux and iTerm

I'm using iTerm 2.1.4 and Tmux on OS X Yosemite. I'd like to be able to scroll my iTerm windows up and down but I'm not sure what controls scrolling. Does tmux control scrolling when I use it with ...
0
votes
0answers
25 views

Tmux 2.2 won't let me scroll while in copy mode (with mouse)

In Tmux 2.0, I could scroll up into my history buffer, then start selecting text (using left mouse button) and scroll with my mouse wheel to select several pages of text. While not always efficient (e....
1
vote
0answers
15 views

Remapping Ctrl + I with keysym in rxvt

I'm trying to remap Ctrl + I to be captured as something else than tab, so I can use it as a shortcut in tmux. However I cannot get to work. As a test case I tried to get Ctrl + I to output Ctrl + W ...
0
votes
0answers
13 views

Tmux window crashes

I have a tmux window on my server. Its been up for almost 20 days and I have 6 shells up on tmux window. All of sudden it crashed and tmux ls don't show the tmux window anymore and I am not able to ...
2
votes
3answers
2k views

Adding Git repo and branch to Tmux status line

I have found a Tmux configuration file that shows how to add the Git branch to the Tmux status line, however It just shows [[ branch ]] no matter if I am in a Git repo or not. I am not sure if this ...
0
votes
0answers
12 views

selecting word in tmux copy mode

I have this in my .tmux.conf (on Debian testing): set-option -g status-keys vi set-window-option -g mode-keys vi bind-key -t vi-copy 'v' begin-selection bind-key -t vi-copy 'y' copy-selection ...
21
votes
2answers
12k views

How to auto resize panes in tmux?

In Vim, with C-W = the windows are auto resized to the same height. In tmux, with :resize-pane -U 10 I can increment the height of tmux pane in 10. How I can auto resize the panes to the ...
1
vote
1answer
359 views

tmux 2.0 on OSX: ~/.tmux.conf doesn't work

I've installed tmux 2.0 from homebrew on OSX 10.10.5 By default it does not create a config, but I've researched that there should be ~/.tmux.conf file so I've created it myself I'm using iTerm2. The ...
0
votes
1answer
30 views

Scripting with tmux?

Can I script several bash/sh instructions to open and run in separate tmux panes? I have about 5 or so different commands that need to be executed simultaneously or consecutively. I usually type ...
3
votes
0answers
14 views

tmux text cut off by split line using iTerm2

I am using zsh, iTerm2, and tmux. When I split the window into multiple panes the line covers up a little bit of the text. Here's a picture of what it looks like: It works fine using terminal, so I ...
53
votes
2answers
12k views

vim freezes inside tmux

I'm using split panes in tmux - one being vim, other shell. Sometimes, around once a day, vim freezes. I can move between panes, perform any tmux commands, just vim doesn't react to anything. This ...
0
votes
0answers
9 views

Tmux on Mac: How to bind “option” key?

I am adding this to my ~/.tmux.conf file and running tmux source ~/.tmux.conf but it's not working set -g history-limit 100000 bind-key -n M-n next-window <--------------------- does not work ...
2
votes
1answer
21 views

Tmux - Detach client fails if using bash startup script

Typically, I use a bash script to create my tmux session (split panes, set PWD, call commands, etc.). This works great, except if I try to run tmux detach-client. It will fail to detach, instead just ...
2
votes
3answers
932 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
12 views

tmux - change status-bg when in an ssh session window

Is it possible to have a different status-bg color when in an ssh session? Say I have the default green one, but would like it to turn red when in a ssh session. Should work when switching windows ...
0
votes
0answers
8 views

neovim not schemecolor on tmux multiplexor

I dont know why I dont have schemecolor when I use tmux on my neovim, here something of data of my console: gnome-terminal tmux 1.9 neovim this look so: I try a lot of this possible solutions but ...
0
votes
1answer
22 views

Tmux keybinding to swap pane left or right

I'm aware that :swap-pane -U and :swap-pane -D will swap panes up or down, but I'd like a keybinding to swap panes left and right. The only way I can think of to do this would be to first determine ...
4
votes
1answer
719 views

Run command in detached tmux session and log console output to file

I can run a command in a detached tmux session with: tmux new -d 'while true; do date; sleep 1; done' I can run a command in an attached tmux session and log the console output with: tmux new '...
3
votes
3answers
141 views

tmux configuration stanzas based on Tmux version

This question is loosely related to this one. So I am using a range of Tmux versions between 1.5 and 2.2 on various operating systems (and Linux distros). My ~/.tmux.conf which had been tailored to ...
1
vote
0answers
83 views

xterm translations: sending multiple keys

I'd like to utilize the multimedia keys on my keyboard in my xterm/tmux. I'd like to map the XF86Launch8 to the keys C-a F1 (ctrl-a being the tmux prefix key, the press F1, which is mapped in tmux to ...
0
votes
0answers
16 views

How do I { maximize | zoom } the current pane in an iTerm2-integrated tmux session?

How do you zoom the current pane if you're using tmux through the iterm integration? Iterm has its own zoom pane key sequence (by default, shift+cmd+enter), but it only seems to work on native panes, ...
0
votes
1answer
114 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 ...
0
votes
0answers
8 views

How can I display a tmux pane only when the output changes?

I'd like to display the output of a static-analyzer only when there is output to display (most of the time, it simply outputs “No errors!”). When there is something to say, it spits out a ton of noise:...
213
votes
13answers
68k 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 ...
1
vote
1answer
35 views

tmux mouse mode is being disabled somehow during a session

Sometimes while I'm working, I notice that tmux is no longer responding properly to mouse controls (usually as I try to scroll back a pane using the mouse wheel and get iTerm2's own scrolling ...
7
votes
1answer
621 views

Display unicode in tmux?

This is urxvt without tmux This is urxvt with tmux and utf8 not enabled in the config This is urxvt with tmux and utf8 enabled in the config How can I make tmux act consistent with the ...
0
votes
0answers
24 views

tmux copy-mode with vi keys bind C-R and C-S like in emacs mode

When I've used C-b [ to enter copy mode, I really like the vi keybindings for navigation but not for searching. Is there a way to bind C-r to ? and C-s to / in vi-copy mode quickly? I've seen some ...
1
vote
3answers
45 views

Two sets of windows side-by-side in tmux

I like to have two sessions/sets of windows side-by-side, with independent windows switching, like on the screenshot - right now I do that by launching two separate Konsole instances, each with tmux ...
3
votes
0answers
241 views

Tmux copy the selection to /dev/clipboard without key-mapping

Many answers related to this topic suggest to map Ctrl+y to a command that pipes tmux show-buffer to xclip. In the specific case of cygwin, the correct way to interract with the Windows clipboard is ...
5
votes
2answers
2k views

Tmux copy-pipe with mouse selection

I use copy-pipe on OS X to share the system clipboard with Tmux 1.8: unbind -t vi-copy Enter bind -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" This works when entering select mode ...
1
vote
2answers
479 views

tmux on a Mac: how can I move the divider lines?

On my Linux system I use prefix (redefined as Ctrl+a for me) that Ctrl+arrow to move the divider line but this isn't working on my new Mac. Any idea how I can move the divider lines?
0
votes
0answers
9 views

How do I setup a tmux session to always use a particular scl?

I'd like to be able to setup a tmux session that more or less transparently runs everything in a particular scl environment, specifically scl enable python27 .... By transparently, I mean that when I ...
1
vote
0answers
20 views

Tmux mouse selection resets scrolling position

When I scroll in a pane, my current shell prompt is not on the screen anymore, then I select anything (for example when I am explaining to a colleague something, just to point a line), the result will ...
1
vote
0answers
31 views

OSX smooth scrolling in tmux

I'm SSH'ing into a linux box using iTerm2. On that box I run tmux 1.6. I have enabled mouse mode: set -g mode-mouse on This works fine, and I can scroll when using tail, but it's not the same ...
4
votes
1answer
181 views

tmux - uppercase “M” at the right of window name

For some reason, occasionally, an uppercase M appears at the right side of the window name, so the window name looks like this: 1:bash*M I'm pretty sure is because I'm pressing some combination that ...