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

3
votes
2answers
260 views

Interrupting very long output in tmux

In a (gnome) terminal, if I cat a file which turns out to be much too long, I can always press Ctrl-c to interrupt. However, in tmux, when the same happens, it takes long for the signal produced by ...
0
votes
0answers
15 views

How do I go to the last line where I entered text in tmux?

I often use tmux to scroll through error messages for various reasons. Usually I use the ninja command to build my projects so when I hit compilation errors ctrl+b [ ninja quickly takes me back to ...
1
vote
0answers
6 views

Is it possible to style tmux on a per-session basis?

I set up 2 tmux sessions to work on different parts of a project (switching back and forth frequently). As their layout are pretty similar, I would like to set different status-bar color to help me ...
3
votes
0answers
23 views

In tmux, is it possible to list all panes in all windows?

Say, I got two windows, Window 1 contains 2 pane (1, 2), Window 2 contains 3 panes(1,2,3), and I'm in pane 1 in Window 1, and I want to jump directly into the pane 2 in Window 2, PREFIX w which is ...
0
votes
1answer
487 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 ...
18
votes
6answers
24k views

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

When I am in tmux only a portion of the text shows up. If I try to scroll up or down the console scrolls up but not the actual text. If I do CTRL+b followed by [, I see in the status bar *tmux, and If ...
2
votes
1answer
1k views

How to bind “Ctrl-Alt-b” as the prefix of tmux?

Tmux uses Ctrlb as its prefix, but Ctrlb conflict with Emacs. I want to bind CtrlAltb to tmux's prefix. I guess it may be C-M-b but didn't work...
4
votes
0answers
84 views

Problem using Ctrl+Arrow keys in Vim when using Byobu with tmux

In Vim, I had set the Ctrl+Arrow keys to skip words. This works just fine when running Vim inside the gnome-terminal. However, when using byobu (tmux), it shows weird behavior : it deletes ...
0
votes
1answer
32 views

Running script through bashrc causes nesting of tmux panes

I use the following tmux code in a script file tmux-dev.sh and add it to bash using bash /home/rohit/tmux-dev.sh : tmux new-session -d tmux split-window -h tmux split-window -v tmux -2 attach-session ...
1
vote
2answers
37 views

Execute command inside another command

I'm trying to record my tmux session. I've got an alias record-session which executes command from ttygif ttyrec ~/ttygif/files/last-session. As far as I understand ttygif starts new terminal instance ...
1
vote
1answer
2k views

Terminal colors for Vim Airline and Tmux Tmuxline

When using Vim on its own with Vundle and Airline the theme appears normally: When I have loaded it up in Tmuxline, the theme uses different colors and even Vim looks different: Here's my Tmux ...
3
votes
1answer
26 views

How do you reset my tmux display? Its stuck in a smaller window

for some reason my tmux is stuck in a smaller box. what is the reason for this? And how can I reset my display? Yes i know i can just kill the pane, but i have a bunch of sessions i want to keep. ...
2
votes
2answers
157 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 ...
1
vote
1answer
15 views

Killing grouped sessions on client detach

I'm using the grouped session feature of tmux to attach to a single session from multiple clients with different screen sizes. Therefore I automatically perform a tmux new-session -t ...
2
votes
3answers
48 views

How do you update the YUM package manager repositories?

I have a new install of redhat and i'm trying to do a "yum install tmux" but its throwing a no package available error: [root@PSCHQVP20017 ~]# yum install tmux Loaded plugins: product-id, ...
0
votes
0answers
17 views

tmux: getting 'lock-command' to execute multiple commands

With tmux, is it possible to get multiple commands to be executed after idle time with lock-command? Example: I can bind multiple commands to a key like this: bind R display-message "Sleeping" \; ...
10
votes
3answers
829 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 ...
1
vote
2answers
957 views

How to get byobu to start at startup with a command executed, as root?

I want when the computer start, a byobu session is started and a command executed in the first window (windows 0), without requiring any user intervention. It is very important that this doesn't ...
14
votes
2answers
4k views

tmux session lost in unknown pts, cause and possible solution?

I was trying to re-attach to a long-running tmux session to check up on a python web-application. However tmux attach claims that there is no running session, and ps shows a tmux process (first line), ...
0
votes
2answers
890 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 ...
20
votes
7answers
13k 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
27 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
40 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
40 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
53 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
42 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
28 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
4k 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
21 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
33 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
41 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
29 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
45 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
19 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
68 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
24 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
75 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
35 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
67 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
45 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
140 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
834 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
35 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. ...
61
votes
13answers
39k 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
71 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 ...
4
votes
1answer
32 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
38 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 ...