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

3
votes
3answers
564 views

How to capture session name into tmux variable?

I want to execute an external command based on the value of my session name. I know that the :display-message '#S' will give me the session name, but I want to have that name automatically sent to my ...
5
votes
3answers
3k views

Can I get tmux split screen to retain the pwd?

Say my present working directory is /home/abc/documents/xyz. Now in tmux, when I split my screen, the new pane defaults to the /home/abc directory. I want the pwd to be retained upon splitting.
4
votes
1answer
217 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 ...
0
votes
0answers
8 views

iTerm2 + TMUX closing behaviour

I've just discovered tmux integration with iTerm2 and it's fantastic! The only thing that I'd love to change is the exit behavior on closing the window. The current behavior exit's the tmux session. I ...
0
votes
1answer
29 views

bash error when starting shell from tmux

When I open a new shell in tmux I get an error message. This error message does not show up when I start a new shell in GNOME terminal. What might tmux be running at startup that I need to check? ...
1
vote
2answers
52 views

Emacs cursor is invisible in tmux in iterm2

When I try to use emacs -nw inside a tmux pane under iterm2, the cursor is invisible. This behavior is present regardless of which theme I use in iterm2. I'm using emacs version 24.5 on Mac OS X ...
0
votes
1answer
21 views

Swap Left Alt and Right Alt on Kinesis Keyboard (or Any Keyboard)

Let me back up my problem a little bit for context. I am trying to use the same modifier-key-plus-letter combination between both vim and tmux so that, if I have a vim pane/whatever on one side and a ...
0
votes
2answers
23 views

Persistent tmux session with shared socket

I would like there to always be a tmux session on a socket in /tmp/shared with a session of 0. That way I can always attach to the session via SSH: ssh user@www.example.com -t tmux -S /tmp/shared ...
0
votes
1answer
36 views

Consequences of 'escape-time 0' tmux setting?

I find that when running (neo)vim inside tmux, the escape-key is delayed. This is fixed by putting set -sg escape-time 0 in my .tmux.conf. Presumably, this disables the possibility of using ESC as ...
21
votes
6answers
26k views

How do I get tmux to open up a set of panes without manually entering them?

So, I want to make a project-specific tmux session that pops up certain commands in certain panes automagically. Following an online tutorial and the tmux man page, this is what I come up with for a ...
64
votes
4answers
12k views

How to convert 2 horizontal panes to vertical panes in tmux?

After doing join-pane on 2 windows, you have 2 horizontal panes. How do I rearrange the panes to be vertical panes instead?
1
vote
2answers
166 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 ...
0
votes
0answers
17 views

Can tmux display pretty pane corners?

I'm in the process of picking up tmux, and I'm sure I'll get used to it, but this pointy edge is bothersome. Is there a way to make the corner flush, like this (fixed with gimp)? I know that the ...
1
vote
1answer
27 views

Copy text without exiting copy mode

tmux's copy-mode offers the ability to scroll up through a window's history, visually select text, and copy it to the clipboard. As soon as text is copied, copy-mode exits and tmux returns to insert ...
1
vote
1answer
17 views

How to access tmux session created in an ssh session locally?

After I created a tmux session and detached in an ssh session, running tmux attach at a local terminal does not bring me the session I created (tmux ls also lists nothing). ps shows tmux is still ...
0
votes
0answers
15 views

Tmux + Vim split screen artefacts

I recently switched my whole workflow to tmux + vim and so far it was awesome; However I have on very frequent problem: There are artefacts after scrolling around in a file. Note that on the right ...
1
vote
1answer
24 views

what does the 'set -g' command do in tmux?

I see references to set -g <command> in tmux, for example set -g status-right ' #[bg=colour33] Branch #[(git branch)] ' I have googled and looked in man tmux and also info tmux but cant find ...
5
votes
2answers
749 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
11 views

Tmux per-window priority

When using gnu-screen, I can set per-screen-session CPU and I/O priorities: sudo /usr/bin/nice -n 15 ionice -c2 -n7 sudo -i -u $user -- 'screen -dmS build' sudo /usr/bin/nice -n 20 ionice -c3 sudo ...
0
votes
1answer
17 views

tmux create panes programatically

I want to create tmux panes programatically. e.g. I have a list of commands to execute, and I'll create a shell script that will invoke a tmux command along with the commands to execute in each pane, ...
3
votes
1answer
160 views

How do I increase the copy buffer size in tmux?

Question: How do I increase the copy-buffer size in tmux? Data: When I run the following command... $ for i in {1..1000}; do echo "$i"; done ... and highlight the entire output in tmux (using ...
0
votes
0answers
9 views

tmux hangs when closing terminal

When I open 2 terminals with 2 different tmux sessions and close one (without exiting the session), the other one hangs. I am using tmux 2.0 (compiled from source) with zsh and testing with no conf ...
-2
votes
1answer
35 views

Alternatives to byobu as a tmux distribution?

Are there good alternatives for byobu as a tmux distribution?. Minimal, stable and that just works? or most tmux users just learn tmux specifics and configure it all by themselves?
0
votes
1answer
36 views

How to dynamically set window titles in Tmux?

I want to set the title of Tmux windows dynamically to the path of the first pane. How do I set a title dynamically?
44
votes
15answers
28k views

What's the best prefix/escape sequence for screen or tmux? [closed]

Screen goes with Ctrl+A.  tmux, as developed within screen, uses Ctrl+B.  Both are also keystrokes in other editors, shells, etc.  What do you suggest? which one conflicts least with other programs?
58
votes
4answers
25k views

How does the tmux color palette work?

I'm trying to set something to gray, but can't figure out how. The only bit of info in the man page about colors I can find is: message-bg colour Set status line message background colour, where ...
0
votes
1answer
13 views

What's the relationship between multiplexer and terminal?

Recently, I learned there's this tmux tool. in wiki, it defines tmux is a terminal multiplexer and I kinda get the idea of what it is capable of. But I'm a little confused about the relationship ...
1
vote
1answer
22 views

Tmux linux keybindings like S-C-E not working

I am trying to create S-C-E shortcut in my ~/.tmux.conf I have succeeded with staff like: bind -n ^e split-window -h bind -n C-e split-window -h # But none of the following seems to work: bind ...
7
votes
2answers
2k views

tmux: close session while open

I am using tmux to manage multiple terminal windows. Currently I have 2 windows open with multiple panes. How can I close the session from inside of tmux. I know that I have to use the prefix (for me ...
0
votes
3answers
179 views

change tmux windowlist selection color

Im trying to theme tmux to my liking, and im stuck at the windowlist selection. ^a+w = shows me the windowlist, with selection bar in yellow; anyone know the incantation for modifying that specific ...
20
votes
2answers
9k 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?
15
votes
2answers
3k views

Function key shortcuts in PuTTY/MinTTY and Tmux/Byobu

As a long-time lurker on Stack Exchange, I've found answers to most of my problems without needing to so much as make an account. But today I'm completely stumped with this issue, so I'm reaching out ...
0
votes
1answer
30 views

Tmux: binding Ctrl-`

I'd like to bind Ctrl-` in tmux to select-pane. I've tried: bind -n C-` select-pane -t :.+ Which gives me: unknown key C-` I've also tried: bind -n 'C-`' select-pane -t :.+ Which gives me the same ...
0
votes
1answer
28 views

Bind Tmux prefix to an unicode character?

I'd like to bind the Tmux prefix to the unicode character  (while also keeping C-b). I'we tried putting the following in my ~/.tmux.conf, but none of theese works set -g prefix M-$ bind M-$ ...
8
votes
4answers
4k views

Why are random characters inserted into my tmux session?

Sometimes when I use the mouse, or press and hold a movement key in tmux, random characters are inserted. For example, when I press the left movement key, "D" is often inserted. A left mouse click ...
1
vote
0answers
81 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
2answers
395 views

Fixed highlighting in tmux

I miss highlighting (reverse mode) on console since I started to use urxvt + tmux as main terminal. The highlights was replaced with with italic font - what looks pretty cool at first - however I ...
2
votes
1answer
51 views

Scroll with mouse in tmux without mouse highlighting controlled by tmux

From this question, Scroll shell output with mouse in tmux the setting setw -g mode-mouse on allows mouse scroll in tmux. This also causes mouse highlighting by click and drag to be controlled by ...
1
vote
1answer
93 views

How to select pane in tmux via mouse over

As the title suggests, I want to select a pane in tmux by just doing mouse over on the pane, like it can be done with Gnome Terminal. I don't want to click the pane to select it. Is that possible?
3
votes
1answer
335 views

tmux - how-to enable automatic switching from 80 to 132 columns and back

Currently in our terminal based accounting system, clients mostly use putty (0.61) and when a report is viewed in the terminal, an escape code is issued that kicks the screen from 80 to 132 columns if ...
1
vote
2answers
41 views

Can I fix a broken tmux session?

When my tmux session gets messed up, e.g., after I accidentally cat a binary file, is there a way to fix it? reset doesn't help much when I'm inside of a tmux session.
0
votes
0answers
21 views

tmux disregarding the configuration file even when no sessions exist

This question is similar to this question, but in this case running "killall tmux" or "tmux kill-server" is not effective. Running "tmux list-sessions" returns "failed to connect to server". Running ...
1
vote
2answers
46 views

Creating a “kill current session” shortcut in Tmux

Is it possible to create a shortcut in Tmux which would kill current session? Typing "kill-session -t mysession" is not very convenient I imagine something like bind X kill-session -t ...
0
votes
1answer
97 views

Configuring function keys in PuTTY for both Vim and Midnight Commander under tmux?

First off, I'm aware that I can use Alt+1 (through 9 and 0) to synthesize the respective function keys (F1 through F10) in Midnight Commander. It has helped me many times, but by default I still press ...
2
votes
0answers
70 views

Bug with resizing panes in tmux when using ZSH

I am using Tmux with ZSH and have a problem when trying to resize panels. I am currently using these bindings to resize panels as I work: unbind-key M-j ; bind-key -n M-j resize-pane -D 1 ...
2
votes
1answer
161 views

How can I tell what command is running on the remote end of an ssh connection?

Tl;dr - how do I find the name of the command (eg $BASH_COMMAND) running on the remote end of an ssh connection? ... My example setup is two tmux vertical panes, LH pane runs a local vim session ...
5
votes
2answers
2k views

Where's the default tmux configuration file?

I'm looking for the default .tmux.conf or something like it. I'm trying to get rid of some noise in the status line that the default creates.
0
votes
0answers
53 views

In mc within tmux ctrl-o doesn't work

When I run mc within tmux: $ tmux $ mc 'Ctrl-o' in mc desn't work properly: mc panes disappear, but the shell command prompt doesn't appear, and pressing any key causes mc panes appear again. When ...
0
votes
1answer
71 views

In tmux, is there something similar to `monitor-activity` but for a single pane?

I use bind m setw monitor-activity so that I can easily toggle whether or not I want visual updates about when a window has updated. However, sometimes I'll have a window with panes which have updates ...
0
votes
2answers
218 views

Attach a tmux session to a remote machine

I am using tmux on my local machine and usually have several sessions simultaneously. What I usually do is I have a session with different windows to work locally and the other sessions in which I ...