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

19
votes
7answers
12k 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.
11
votes
3answers
5k views

Copy text from one tmux pane to another (using vim)

I have two files opened in vim, each in one tmux pane. I would like to copy let's say 10 lines from one file to another. How can I accomplish this not using the mouse's Copy -> Paste ?
0
votes
0answers
22 views

Binding mouse buttons in tmux

Has anyone managed to bind mouse buttons to custom functions in tmux? According to the manual this should work: bind-key -n MouseDown2Pane paste-buffer This should let me take text that was ...
4
votes
2answers
1k views

tmux exits immediately after starting

I'm trying to start with Tmux but failing to even run it. Immediately after starting it exits. looked like It's the same as this question It happens both without a .tmux.conf and (following some ...
0
votes
1answer
11 views

tmux force resize window

I usually connect to remote linux servers from a specific windows server (W1). On the windows side, I use putty and on the linux side, I start tmux. Occasionally, I have to use a Different windows ...
2
votes
3answers
28 views

How do I remap newline and carriage return regardless of the terminal used to connect?

All my configuration is stored in my github account (https://github.com/mnebuerquo/dotfiles) so I can just clone my repo and run my install script and my home is configured to use all my tools. I ...
1
vote
2answers
38 views

Trailing spaces when copying from console

It's this annoying behavior I've been experiencing here and there occasionally: when you select text with mouse in console (that is, copy it), paste it, and realize you've got extra spaces at the end ...
0
votes
2answers
37 views

Tmux bindings using Ctrl+comma

In OSX, on iTerm2, I can map Ctrl/Cmd/Opt+, or Ctrl/Cmd/Opt+. to hex codes that go to next or previous tmux windows. How can I use Super/Meta/Ctrl and comma/dot key presses on Linux to produce the ...
1
vote
2answers
19 views

How to comment in a windows.tmux file

My ~/.byobu/windows.tmux file is getting a bit complex and I would like to document it with comments. How to insert comments in Byobu's windows.tmux file? Using # as seen below results in a unknown ...
3
votes
5answers
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.
0
votes
1answer
18 views

Determine the tmux session a shell session belongs to?

tmux provides a number of commands in the shell such as rename-session which operate on the session that the invoking shell belongs to. It also provides commands like list-clients which list out the ...
0
votes
2answers
28 views

“Replace” default shell (bash) with tmux

Background: An co-worker at my company uses tmux all the time, in our spare-time he teached me mastering tmux and vim and I really fall in love with the power of this combination. Currently, I am ...
2
votes
1answer
33 views

How to get clipboard support on a Linux server without X11

I have a virtual Linux development environment running under VirtualBox and Vagrant. I use tmux and vim to setup multiple open vim instances. I'd like to be able to copy and paste between those ...
0
votes
2answers
27 views

“Quit and restart” control code?

I find myself frequently (after making some change to source) "Ctrl+C;↑ ing" to restart the program with changes. Is there a way to do this more quickly, without wrapping the program in a loop ...
0
votes
0answers
19 views

Urxvt and tmux - set window title

When I use tmux from urxvt, window title is not updated. Normally when I use just urxvt, window title is updated every time I change directory and it is in form of "$USER@$HOST:$PWD", but when I run ...
0
votes
1answer
12 views

Bind tmux prefix to section symbol §

I usually use the backtick key as my prefix, but this keyboard has the section/stanza symbol § where the backtick usually (at least, for me in the UK) is. If I bind to this key, quoted or unquoted, ...
1
vote
1answer
62 views

Attach tmux to pty after reptyr?

I've got reptyr to "open a new pty" by doing: reptyr -L 7969 where 7969 is the PID of rabbitmq-server. The output of reptyr is Opened a new pty: /dev/pts/25 but how do I attach tmux to that ...
1
vote
0answers
18 views

tmux select-pane -LDUR command - disable auto-cycling behavior

is it possible to disable the behavior which cause selecting a pane on opposite side of a tmux window if there is no more pane left in a direction select-pane command was originally triggered at? if ...
3
votes
1answer
41 views

Sending commands to a window in tmux

I want to run a minecraft server in tmux and send commands to the server window from a bash script. Below is my script: #!/bin/bash echo "Starting vanilla server..." sleep 2 # Start a new session ...
1
vote
0answers
23 views

Can multiple users issue commands simultaneously using tmate with seperate cursors in the same session?

I've just installed tmate and tmate-slave on a VM and am wondering if when more than one user is part of the session, can tmate allow both users to work in synchronous mode, meaning each has their own ...
1
vote
0answers
31 views

How to preview image in tmux in iTerm2

iTerm2 is able to display images within the terminal. I'm using the imgcat script and it works fine, but when I'm inside of tmux it does nothing. Is there a way to be able to preview images inline in ...
2
votes
1answer
32 views

Can we broadcast in tmux

Now we know that we can do a broadcast all or to a specific group in terminator and execute commands simultaneously on every window. Can we do the same inside a tmux session?
5
votes
1answer
106 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 order to make tmux open new windows with the same path as the current window I added this line to my ~/.tmux.conf file: bind c ...
10
votes
1answer
780 views

How can I make tmux monitor a window for inactivity?

I've switched from GNU Screen to tmux. They're both similar, except that tmux is still maintained. GNU Screen has a C-a _ ("silence") command. This command makes GNU Screen monitor the current ...
0
votes
0answers
29 views

tmux refuses to split

I'm fairly new to tmux. I tried to google a solution but no luck. My problem is that after I (sucessfully) split my window vertically for the first time, the second attempt to split the window fails. ...
10
votes
3answers
807 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 ...
59
votes
13answers
38k views

Getting tmux to copy a buffer to the clipboard

I am trying to figure out a decent way to copy what I have in a tmux buffer into my clipboard. I have tried a couple of different things like bind-key p select-pane -t 2 \; split-window 'xsel -i ...
1
vote
1answer
49 views

Configure tmux to use zsh

Right now I have my iTerm session configured to use zsh (/usr/local/bin/zsh), but I'm trying to configure tmux to use zsh as well, instead of /bin/bash/, which it's currently defaulting to. So far ...
0
votes
2answers
815 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 ...
4
votes
1answer
27 views

tmux key binding to pipe pane contents to program

I'm trying to get this key binding to work to pipe the contents of the current pane to a program of my choosing: bind P command-prompt -I "vim -" \ "capture-pane -eJ -S - -E -; \ set-buffer ...
1
vote
1answer
27 views

Tmux displaying quotes/messages on startup

I have installed tmux on Linux Mint Debian Edition and every time I start it or create a new pane/window it displays a random quote or message above the prompt. It's driving me crazy and I cannot seem ...
2
votes
0answers
22 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
31 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 ...
2
votes
1answer
222 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
29 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 ...
5
votes
2answers
50 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 ...
5
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
128 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
32 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
31 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
44 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
32 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 ...
19
votes
2answers
15k 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 ...
2
votes
2answers
129 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
33 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
37 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
188 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 ...
52
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.