tmux is a terminal multiplexer, which allows users to work with terminals in terms of windows and panes, which can be created, destroyed, attached, and reattached at will.

learn more… | top users | synonyms

3
votes
1answer
5k views

Attempting to install tmux on CentOS 6.4 or CentOS 6.5 fails with error: ‘EVBUFFER_EOL_LF’ undeclared

I tried compiling tmux using the following steps: yum -y install ncurses-devel libevent-devel wget http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz tar -xvzf tmux-1.9a.tar.gz cd tmux-1.9a ...
0
votes
1answer
38 views

What is the command for inline help in tmux?

In vim, we have :help. In R, we have ?topic. I seem to remember there is an option inside tmux to get help on tmux commands, but I cannot remember it and could not find it online. Update: I tried a ...
0
votes
0answers
25 views

What do the entries in tmux layouts mean

I have just started to use tmuxp which seems like a great program. Unfortunately it still has some bugs, so the last freeze that I made saved a wrong yaml file. So I'm now trying to reconstruct the ...
1
vote
1answer
314 views

Run function in tmux within bash script

My bash script has some functions and i need one tmux pane to execute function within bash script. For example below code won't work and will be reported that command "internal" not found. common() { ...
6
votes
1answer
222 views

Merging different windows in tmux

my question is simple. I have two windows in tmux session, 1 and 2. How can I merge these two windows into one window split horizontally/vertically? I couldn't find an answer in manpage, so I'm asking ...
1
vote
1answer
69 views

Tmux - select entire lines

I'm using tmux with the following lines in my .tmux.def: bind p paste-buffer bind-key -t vi-copy 'v' begin-selection bind-key -t vi-copy 'y' copy-selection It works well and I can start copy mode ...
1
vote
1answer
135 views

Launching Applications In Fullscreen From Terminal in OSX 10.9 Mavericks

It's my first venture into the world of tmux, and the end goal is an executable script that directly starts tmux (instead of launching Terminal and then starting up tmux from there) in fullscreen mode ...
1
vote
0answers
25 views

tmux completion (not shell completion)

Is there any way to do completion of arbitrary text from your tmux session (e.g. output from previous commands)? Something similar to hippie-expand in emacs or Any word completion in vim? Note that ...
0
votes
0answers
28 views

Why can't tmux bind my KeyRemap4MacBook mapping

I'm attempting to map some fancy keypresses to tmux commands using KeyRemap4MacBook and tmux bind. I have a KeyRemap4MacBook mapping that looks like: <item> <name>Test</name> ...
0
votes
1answer
383 views

Mouse scrolling down in vim inside tmux via PuTTY, but not up

I'm experiencing an issue across multiple platforms where scrolling down with the mouse wheel works fine, but not scrolling up, while using vim within a tmux session within PuTTY. Any ideas? Maybe ...
1
vote
0answers
203 views

Problems with tmux, mutt, and terminal colors

If I start mutt in a tmux session like this: $ tmux new-session -s mutt mutt Mutt complains: Error in /home/lars/.mutt/colors, line 20: 230: color not supported by term Error in ...
0
votes
0answers
9 views

Tmux send-keys from zoomed pane

Whenever I try to use send-keys from a zoommed in pane (tmux resize-pane -Z) it does not work: I get no error, but the keys aren't send as well. How can I send keys from a zoomed pane to another?
1
vote
0answers
105 views

Tmux causeing issues with Bash up-arrow

When using tmux, I have issues of ghost characters when using the Up and Down arrow keys in Bash. If I press UpArrow a few times and then press DownArrow a few times, then the first few characters of ...
0
votes
2answers
73 views

A tab in Tmux results in an indent and tabcompletion

I ruined my tabcompletion in Tmux. When I use tabcompletion and I've multiple options which fit the prefix Tmux is acting weird. Assume I've a folder with subfolders downloads and documents. When I ...
0
votes
0answers
19 views

Is there a way to enable either vim or emacs bindings for the tmux command buffer?

Normally, when we type a command to tmux, we do <Prefix>:, and get a line to type on at the bottom. Is there some option to set that command buffer to use either vi or emacs bindings for ...
1
vote
1answer
130 views

Restore session/state in terminals

When I close my browser it remembers "state" in the sense that it remembers what tabs I have open and text that I had entered into various forms. Is there a way to do something similar with my ...
0
votes
1answer
91 views

How to run 3 programs side-by-side with a shell script?

I've never used tmux before, but as I understand it, I can use it to create panes and run programs side-by-side. Here's what I've got: tmux new-session -d -s busman tmux split-window -h -p 66 -t ...
0
votes
2answers
1k views

Tmux 1.8 gives “failed to connect to server” when trying to source a file

I have tmux 1.8 on my machine, and it works correctly if I just invoke it on the command line with tmux on the command line. However, when I try to run tmux source-file <any-file>, I always get ...
0
votes
0answers
55 views

tmux detaches all sessions on idle

How to configure tmux to automatically detach only clients of one particular session when user idle for some time on this session? I have this in my config: set -g lock-after-time 1000 set -g ...
1
vote
1answer
140 views

Send non-tmux window to tmux

I have a few terminals open. I'd like to send the processes in those terminals to a tmux session rather than saving, closing, restarting under tmux, and then getting the process back to the state it's ...
0
votes
1answer
218 views

Use Windows Key in tmux

I'm using a PC a lot where X is not running. I want to use the left windows key instead of control-b as the escape character for tmux How can I achieve this? Without xev, etc. I don't really know ...
0
votes
1answer
227 views

cannot type anything into tmux (some keys have weird behaviour)

I'm using tmux via wemux. Sometimes the input seems to be stuck and only very few things are working: can not enter any characters or numbers can still see the output of the program that's running ...
0
votes
0answers
40 views

Is it normal for tmux to behave erratic when issuing “clear” command?

I have multiple panes, and every time I enter the clear command in one of the panes - strange things happen. For example, I enter "ls" on both panes, then if I clear the right pane (#2) - it clears ...
0
votes
1answer
77 views

Tmux seems to be taking some input (backspace, enter) literally. How can I stop this?

I've got debian and when I'm in tmux, sometimes my input is taken literally. (FWIW I ssh into this computer.) For instance, I was earlier doing: sudo apt-get remove ftp And when It would ask for ...
3
votes
2answers
2k views

How can I Install Tmux in Cygwin?

I'm trying to install Tmux under a Cygwin 64-bit installation on Windows 7 64-bit. I'm following these instructions: http://java.ociweb.com/mark/programming/tmuxInCygwin.html I successfully compiled ...
2
votes
0answers
83 views

tmux visual indication if panes are synchronized

Is it possible for tmux to have some visual indicator if synchronized-panes is enabled for the window? Perhaps the status bar changes to blue, or just a star appears somewhere? I often set ...
0
votes
1answer
61 views

Start tmux session with only one window but several panes

I'm trying to configure tmux so it starts creating a new session with three panes. One big pane on the left und two small panes on the right side. I set set -g default-terminal "screen-256color" ...
0
votes
1answer
43 views

Use tmux for managing multiple downloaders as a supervisorctl service?

I have many data-servers I need to download data from via http as soon as it is available. For each server I start a bash "while true"-loop and within that a wget to poll the server for new data. To ...
0
votes
0answers
11 views

Don't scroll on search

When searching with / and ? in scrollback/copy mode (VIM style) tmux scrolls the window so that the search result appears in the center of the screen. I find that this makes me loose track of where I ...
0
votes
1answer
181 views

Tmux New Window Default Name

I'm using tmux on Fedora 20 (I installed the default tmux rpm using yum). When I create a new window inside tmux, the default title is something like this: user@hoest:/path/to/this/folder which is ...
2
votes
1answer
1k views

Mouse scrolling in vim through tmux, how to configure?

I'm using a combination of PuTTY, tmux and vim. If I just open an SSH connection with PuTTY and then open vim, mouse scrolling works as expected. But if I open tmux and then open vim inside tmux the ...
0
votes
1answer
108 views

How can I manage a tmux session using supervisord?

I want do mirror the data of some 15 different servers that aperiodically but continuously provide files that I need. For this, I created a tmux conf that opens 15 tmux-windows with shells that run ...
0
votes
1answer
105 views

Tmux: Start a window as root?

I currently have a shellscript which creates a session for me that has 3 windows: Zsh - Empty Vim - Runs Vim, started by tmux-sendkeys) Diff - Empty However, I would like to introduce a 4th window ...
2
votes
1answer
76 views

tmux limit activity-monitor window size

As part of my work I typically need to connect to multiple different servers via SSH. I like to run a local tmux session to manage various terminals and then from within the SSH session to the remote ...
0
votes
0answers
27 views

How do I determine whether a program other than bash is running in a different pane in tmux, and if so suspend it and return to the shell temporarily?

I am trying to write a bash script to script tmux and do things in every pane in my current window. That I have down, but I'd like to be able to know if another window is running the shell or if I'm ...
0
votes
2answers
58 views

How to recover tmux output?

I have a Play application that runs in tmux and its logs print on that terminal. I saw the last lines of it. It has generated only a few thousand lines of logs at most. I want to recover all the ...
3
votes
1answer
702 views

vim inside tmux: throws “E388” with <C-Left> in insert mode [duplicate]

I've read that in insert mode in vim, one can use <C-Left> and <C-Right> to move by words. This works for me, but only as far as I don't run vim inside tmux terminal splitter. When inside ...
5
votes
1answer
1k views

tmux - scroll up/down with shift + page up/down into a pane

I would like to be able to scroll up/down into a given pane with the same keybinding that xterm does, i.e SHIFT + Page Up/Down. For example, if the tmux window is divided into 2 vertical panes, I ...
3
votes
1answer
460 views

Rename Iterm2 tab from within tmux

I can use the following function to rename a iterm2 tab and that works great. function rename_tab { echo -ne "\033]0;"$@"\007" } However, if I run this function while in a tmux session, then ...
0
votes
0answers
11 views

How to create a pane with a height of 1

I'm writing a bash script that uses tmux. In it, I want to create a pane wioth a height of 1 line. I tried doing tmux splitw -v -l 1, but that just gave me a pane with a height of 2. I also tried ...
0
votes
1answer
317 views

Detach from local tmux session to attach to remote tmux?

I currently have my new Konsole instances pop up already within a tmux session, whether new or attached, since tmux is awesome and you should always be inside tmux, right? However, this puts me in a ...
0
votes
0answers
20 views

Don't reduce tmux size to smallest client?

When running wemux for instance, you don't want a mirror client to be able to reduce the view size for every client watching. Is there a way to force a window size or let a single client manage the ...
0
votes
1answer
75 views

How do you close the tmux list-keys screen?

In tmux, after pressing the prefix key (Ctrl + b in my case) and then pressing question mark to go to the list-keys screen, how do you close out of the list-keys screen and return back to whatever you ...
0
votes
1answer
52 views

What prefix keys are allowable in tmux?

Lots of people modify their tmux prefix keys. Usually it's Control+something. But surely other things are possible. I tried, for example, ,t, but on starting tmux, I got the error bad key: ,t. So ...
4
votes
1answer
129 views

Making vim use the alternate screen

This thing is driving me crazy. I have already searched the internet and SE and found a lot of related questions but none solve my problem. I'm using Zsh inside tmux. Until a couple of days ago ...
0
votes
1answer
70 views

zsh function cannot be used in tmux

I wrote up a special function to wrap a command, in ZSH, so it doesn't output any warnings and runs the process in my background. This command works great without tmux, but when I try to use it in a ...
2
votes
2answers
176 views

Tmux - Check if server is up

Is there any known tmux-function, like tmux has-session -t <session>, but to check if the tmux server is currently running? It would be handy when writing automation-scripts. When checking if a ...
0
votes
0answers
57 views

How to rearrange windows into tabs with iterm2

I'm using iterm2--tmux--tmuxinator integration. That's awesome. However, iterm2 wants to open up a different window for each window, and there's no obvious way to configure that to use tabs. The only ...
1
vote
1answer
163 views

Tmux mouse mode does not works with large gnome-terminal

I'm running tmux on gnome-terminal with mouse support activated. When the width of the terminal is not too big then it works flawlessly, however, when I use it in full screen mode the mouse clicks are ...
2
votes
1answer
117 views

Case insensitive search in tmux's copy mode?

So in tmux's copy mode you can search text with the ? (at least if it's in vi mode). However, it only finds matches with the same case. I also want matches that have a different case. So, when I ...