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

0
votes
0answers
28 views

Neither `less` or `less -X` clear screen on exit

Neither less or less -X clear screen on exit. At the same time, vim does.... Env iTerm2, protocol mosh, server Centos + tmux + zsh iTerm2: report term as xterm-256color tmux: set -g ...
0
votes
1answer
17 views

Can I get my iTerm key-combos working in tmux?

I have some shortcut keys defined in iTerm, and I use them for key-mappings in Vim. For example, I map Ctrl-Enter to send a ^[O2P escape code, which I then use to define a Ctrl-Enter key-mapping in ...
2
votes
1answer
19 views

What is tmux's “message-command”?

I've been trying to figure out how to change the background color of the command prompt in tmux's copy mode. It defaults to black on orange, at least on my setup. I changed the color of the command ...
1
vote
0answers
56 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 ...
0
votes
1answer
21 views

How to split a new window and run a command in this new window using tmux?

I have tried tmux -c "shell command" split-window but it does not seem to work. Using tmux split-window, one can split a new window. UPDATE: Using tmux split-window 'exec ping g.cn' can run the ...
1
vote
1answer
27 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
0answers
8 views

tmux session stops updating screen randomly

I use tmux 1.6-2 on a Debian 7.6 (wheezy). I open a new session and start a long running script that gives updates in form of a progress bar and an activity indicator (spinning bar: /-\|/ ). When ...
1
vote
1answer
40 views

share existing tmux session

I have a tmux session already running. I have created it just with tmux now I can leave the session and re-enter with tmux a -t 0 how can I share this session with other users? Usually one has ...
3
votes
1answer
23 views

Reorder tmux windows

How can I efficiently reorder windows in tmux? For example, having this set of windows: 0:zsh 1:elinks 2:mutt 3:irssi 4:emacs 5:rss 6:htop What would I have to do to move rss to between ...
1
vote
2answers
51 views

How do I create a simple tmux conf that splits a window?

I'd like to create a simple tmux conf that does the follow. Splits the window/pane/whatever_stupid_terminology horizontally (hsplit) Opens in the top pane tail -f foo Opens in the bottom pane tail ...
2
votes
0answers
26 views

Tmux log output [duplicate]

Im looking for a solution to an issue regarding tmux. One of my scripts ns2server stopped working recently when running start (using tmux) but not in debug mode (not using tmux). I found that using ...
1
vote
1answer
34 views

tmux new pane has home directory as default instead of previous directory

When I press Ctrl+" (create a new pane) while in a pane, which has the PWD /tmp for example, the new pane starts as my home folder ~. I looked at http://unix.stackexchange.com/a/109255/72471 and it ...
2
votes
1answer
84 views

In tmux session, cannot connect to X server after ssh'ing

At work, I have a desktop with a monitor and a few running tmux sessions. At home, I frequently ssh into that desktop and enter my running tmux sessions. When I ssh from home, I do not want to use ...
3
votes
1answer
77 views

Is there a way to find out why tmux crashed

I am trying to shift from using VNC to tmux. My tmux keeps crashing at least once in a week and I am clueless why this happens. VNC rarely crashed and this weekly crash is a strong detrimental for me ...
7
votes
3answers
329 views

How can I have my .bashrc only invoke TMUX if it exists on my system?

I use tmux on most boxes, but not all. I have the following line in my .bashrc file: [ -z "$TMUX" ] && export TERM=xterm-256color && exec tmux which invoke tmux if it exists. I ...
7
votes
2answers
298 views

How do you hide a pane?

I have 3 panes in my tmux window: -------------------------- | | 2 | | | | | 1 |----------| | | 3 | | | | ...
2
votes
2answers
131 views

Tmux Split Panes in the same window

I am new to using tmux in scripting and I am attempting to manipulate it so when I run a script I can have multiple screens attached and split in my Putty session, and also have it color coded and ...
1
vote
0answers
135 views

Have tmux wait until I SSH in, to complete rest of Tmuxinator script

After recently discovering tmux and Tmuxinator, I've been trying to set up a development environment to use. Per protocol, we aren't allowed to store passwords/passphrases in scripts. So what I'm ...
1
vote
1answer
64 views

tmux hightlight colour setting

In tmux, the default highlight setting is a yellow background -- at least on my version and machine. This is when using the mouse on X11 but is the same with the console selection. I cannot find the ...
5
votes
1answer
123 views

How do I change the color of the pane dividing lines in tmux?

I've used the following command to change the color of the status bar at the bottom of the screen: set -g status-bg colour244 But I don't know how to change the color of the lines that divide ...
4
votes
1answer
22 views

How do I re-map the changing pane keys in tmux?

I want Prefix + Up,Down,Left,Right to be mapped to Prefix + Ctrlh, Ctrlj, Ctrlk,Ctrll. I tried: bind-key C-h Left bind-key C-j Down bind-key C-k Up bind-key C-l Right But it didn't really work: ...
2
votes
1answer
49 views

Why does tmux fail to “scroll” when entering a command that exceeds one line? (OSX Terminal.app)

When I use tmux and enter a command that exceeds the line, it fails to redraw the previous line. It simply clears the current line and I can't see what I just wrote. It does only redraw the first ...
3
votes
1answer
26 views

tmux session_name count

Let's say that I created four new tmux sessions (1, 2, 3, and 4). Now, I kill every window in session 2. tmux list-session only show that 1, 3, and 4 are active. If I create a new tmux session, it is ...
4
votes
1answer
163 views

What are valid keys for tmux?

I was trying to learn how to use the bind-key [-cnr] [-t key-table] key command [arguments] better, but was having some trouble figuring out what "valid keys" are for bind-key command. I tried doing ...
3
votes
1answer
535 views

zsh: set TERM=screen-256color in tmux, but xterm-256color without tmux

I need my $TERM to be xterm-256color outside of tmux (in "plain" terminal with zsh), but screen-256color inside tmux. First I tried: add export TERM='xterm-256color' to my ~/.zshrc. add set -g ...
0
votes
1answer
47 views

tmux: ncurses apps are displayed wrong (with garbage and so on) [duplicate]

I have ncurses apps (say, aptitude) working nice in plain xterm (or gnome-terminal, or any other terminal I've tried), but if I run it inside tmux session, screen isn't properly refreshed while I do ...
0
votes
0answers
20 views

tmux protocol mismatch with no upgrade [duplicate]

[This question should not be a duplicate of the one asked already. In this case, there has been no upgrades of any OS or tmux version anywhere. If this is going to be marked as duplicate still, please ...
3
votes
0answers
55 views

Is there a more elegant way to unlink two tmux clients sharing a session from inside tmux?

This is almost a code-review question, but very *nixy and more about configuration than code. For years since I switched to tmux from screen I've had a couple of nagging issues that I could not make ...
3
votes
1answer
36 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 ...
3
votes
1answer
77 views

Make tmux block until program completes

I am impressed by tmux's remote control features: tmux new-window -t p12346 'echo foo;sleep 10' This creates a new window in the session named p12346 and does not print anything on the screen. ...
0
votes
2answers
37 views

How to switch directly to a pane in Tmux?

I'd like to switch directly to a pane in Tmux, by pane #. How can I do this? I know how to cycle between panes, and move to panes that are beside the current pane. I'd like to be able to run the ...
3
votes
2answers
84 views

Finding out whether current alias/function/script is running inside Tmux - with a twist

NB: Yes, I've read How can I tell if I'm in a tmux session from a bash script? How can I find out whether I am running inside a Tmux session from my shell or shell script or shell function or ...
0
votes
0answers
42 views

Disable mouse scrolling in vim with tmux

I'm experiencing the same problem as in this Q&A titled: disabling mouse support in vim in a gnome-terminal environment, where it was found (in the comments for the top answer) the problem wasn't ...
0
votes
2answers
345 views

Use system clipboard in vi-copy mode in tmux

I'm running tmux 1.6 and I'm trying to configure it to use vi-style keybindings as well as use the system clipboard when copying in interactive mode: set-window-option -g mode-keys vi bind-key -t ...
3
votes
1answer
453 views

How to quickly send commands to nested tmux sessions?

I have the following in my .tmux.conf set -g prefix M-j bind-key j send-prefix I need to press (Atl+J) + (J) + bound-key to send something to the nested tmux session. I feel it is rather slow. Is ...
2
votes
0answers
239 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
42 views

How can I get a tmux session menu from outside a tmux session?

I'm trying to build a wrapper for tmux that presents me with a menu of all available sessions instead of creating a new one. However the man page explicitly says that this is not possible (excerpt ...
2
votes
2answers
132 views

Tmux config not retaining PWD on new-window or window split

So I'm trying to update my .tmux.conf file to reflect the change for -c in new-window. I've added this to my conf and it's not working unfortunately. My new windows and panes always start in ~/: # ...
1
vote
2answers
114 views

How to colorize last window in status line?

I'd like to make the last selected window (the one to which :last-window takes you) to stand out visually. By default it's just marked with an inconspicuous - after the name. Is there a way to set ...
2
votes
2answers
186 views

Getting 256 colors to work in terminal multiplexer

tmux I followed Getting 256 colors to work in tmux: I have alias tmux='TERM=xterm-256color tmux' in ~/.bashrc and also set-option -g default-terminal "screen-256color" in ~/.tmux.conf In konsole: ...
1
vote
0answers
20 views

How to stop tmux capturing key sequences?

My xterm is configured to produce this sequence: Ctrl ~Shift <Key>Tab: string(0x1b) string("[27;5;9~") \n\ Under tmux it almost always does not work (sometimes it passes through). What could ...
1
vote
1answer
48 views

Get TMux scroll buffer contents

With TMux, is there any way to programmatically retrieve scroll buffer content from above the current command line? I'm basically looking to write a bash script to iterate upwards until I find a ...
2
votes
1answer
29 views

Does TMUX have unit tests or a test suite?

I am going through my configuration shell scripts and I have found the make commands to run test suites for pretty much every "big" open source project that I use (vim, zsh...) except for tmux. I ...
2
votes
2answers
63 views

How can I change the terminal tmux info (lower right) called status-right to username or host?

I have 7 dashes (-------) on the lower right. Can I replace them with something like my name or my host name? This is not about the PS1 prompt. I already have time name host dir there. I use tmux. I ...
1
vote
0answers
51 views

tmux color theme in emacs gtk

When I use emacs -nw I always use it in tmux 256-color mode. tmux applies its default color theme to emacs so it looks like this: For some reason I like that color theme far better than any other ...
0
votes
1answer
166 views

RVM + TMUX—Duplicate entries in $PATH

My Linux terminal config files (.bash_profile, .profile, .bashrc) expand $PATH by prepending some custom directories. This only happens once (and I've also included some ENV vairiable based guards to ...
3
votes
1answer
75 views

tmux client/server version mismatch during distribution upgrade

It has become fashionable to run distribution upgrade in a tmux terminal to avoid remote connection issues or issues with the X server (e.g. opensuse documentation). Yet this does not take into ...
1
vote
2answers
62 views

How to add a horizontal split to tmux window that spans the whole width of the parent window?

When I have a tmux window vertically split into two panes, how can i spawn a new third horizontal pane that stretches over the full width? e.g. How do I get from this: Ctr-b % +–––––––––+–––––––––+ ...
2
votes
1answer
80 views

Can I change tmux status bar color when I hit C-b

I use tmux on the local computer then ssh and use tmux too. I can easily use them both (C-b twice for modifying the second tmux) but for more readability I'd like to highlight the status bar of the ...
1
vote
1answer
61 views

Combining local and remote terminal multiplexing

I use tmux regularly to easily handle multiple terminals on my local machine. Sometimes, I need to connect to a remote machine and start a script in one the terminals (i.e. a pane or window in tmux). ...