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
6answers
5k views

Messed up keys in vim when running inside tmux

I have been playing with tmux and I'm loving it. However, there's an annoying issue when running vim inside it. Somehow the arrow keys get remapped, but only on certain times, like when firing up ...
0
votes
0answers
1 view

How to source a script in every panes and windows of a specific tmux session

I have a shell script specific for a project which create environment variables, aliases and run some commands. I want to create a tmux session for this project which will source my shell script ...
2
votes
2answers
3k views

Option key does not work as Meta in Tmux

I am using Mac OSX Lion. I have checked "Use Option key as Meta" in Terminal preferences. Although the Option key seems to work fine as Meta in Bash, when I use it in Tmux (over SSH) it does not work ...
0
votes
3answers
2k views

TMUX key bindings

I have a problem with TMUX key bindings. When I'm working on a terminal pane, if I press ctrl+pgup, it should scroll the screen one page up, as a normal terminal, but it doesn't. Also, while using ...
0
votes
0answers
11 views

tmux copy-mode page up with M-v on OSX

For some reason, C-v pages down no problem. However, when I hit Alt-v, nothing happens. Here's my config: # Make C-a escape unbind C-b set -g prefix C-a bind C-a send-prefix # Make it like emacs ...
0
votes
0answers
6 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
0answers
6 views

tmux very slow on Mac OS X Yosemite

When I run tmux very slow on Mac OS X Yosemite, it takes a few seconds to load, then the input is very delayed. This seems to have been a recent issue. It's occurring on both Terminal and iTerm2. Has ...
38
votes
4answers
26k views

Byobu vs. GNU Screen vs. tmux — usefulness and transferability of skills [closed]

So far I have used Konsole to manage multiple shell sessions but I haven't tried Byobu, GNU Screen, and tmux, which offer better support for multiple shells. They all share one main feature, which is ...
2
votes
2answers
111 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 ...
4
votes
2answers
336 views

Proper Format for Byobu's windows.tmux?

In Byobu 5.17 (using tmux 1.6), how ought I format the windows.tmux file? I've poked around a bit, but have been unable to find a proper answer. For reference, here's the screen version of what I ...
1
vote
1answer
11 views

How to make byobu output the complete history directly to buffer?

It is possible to enter some sort of scrolling back mode with some keys. But I wonder if we can directly output to the buffer and use the scrolling of the terminal app. I noticed it is possible, ...
1
vote
2answers
98 views

How do I shove a pane to the left in tmux?

Suppose I have three horizontal panes stacked up vertically and I would like to push one of them to the far left, such the other two panes are still stacked but on the right. Current Setup: Pane 1 ...
1
vote
1answer
9 views

Is it possible to close the ssh session without closing byobu or the window?

If I use byobu, exit only closes the current shell. And I have to close all the shells to terminate the session, which is terrible, because I want to keep all the shells, which is why I use byobu. ...
4
votes
2answers
174 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 ...
1
vote
1answer
411 views

Is there a way to set margins/paddings in tmux?

I'm just wondering if something can be done with the effect presented below: As you can see, I divided the window into 3 panes. When it comes to copying, everything is fine except double click on a ...
0
votes
1answer
6 views

tmux server being killed when shell closes

Tmux server and my tmux sessions are being killed at the end of my SSH sessions. SSH session: # timepoint 0 $ tmux # timepoint 1 # ^D [detached (from session 0)] # timepoint 2 $ tmux a # ...
1
vote
0answers
14 views

gitk not working inside of tmux

I have a weird issue where gitk does not run when I use it inside of a tmux session. If I run gitk from tmux, I get: Error in startup script: 58:102: execution error: An error of type -10810 has ...
6
votes
2answers
1k views

Difference between tmux and shell split options on iTerm2?

I currently switched to iTerm2 + VIM for my dev environment. I noticed that the last version of iTerm2 supports tmux and there were people using tmux to split the window into several sessions. I also ...
0
votes
1answer
18 views

Change to Virtual Console 2-4 on target system via PuTTY and screen

I am trying to figure out how to change to Virtual Consoles 2-4 on a target system using PuTTY and screen. I have read the screen man pages and the replies here, but I still can't figure it out. ...
3
votes
3answers
572 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
248 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
14 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
43 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
76 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
29 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
34 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 ...
1
vote
1answer
61 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 ...
68
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
208 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
27 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
35 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
24 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
26 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
27 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
777 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
15 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
27 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, ...
0
votes
0answers
13 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
42 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
49 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
29k 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
17 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
26 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 ...
8
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
197 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 ...
21
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
4k 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 ...