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

0
votes
1answer
54 views

What does ps axuwfw return?

I am getting strange output including my old makefile output and process tree when running below command on linux ps axuwfw Also, what is the usefulness of the following command and how does it ...
0
votes
1answer
345 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
1answer
113 views

Zsh autocomplete function with sed

I'm struggling to write an ZSH autocomplete function. My goal is to autocomplete ta's and tk's first argument with the projects listed in tmux list-sessions and tmuxinator list. Here's what I have so ...
0
votes
0answers
98 views

Using <ctrl+arrow> with zsh within (byobu-)tmux within gnome-terminal

I already added the following lines in my profile.tmux configuration file: TERM=xterm-256color set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@" unbind C-Left ...
1
vote
1answer
61 views

How to send keys to “other pane”?

Reading the tmux man page, I would think that the command to send characters from one pane to the other in a two-pane setup would be the following: tmux send-keys -t + "ls -l" But it just sends to ...
1
vote
1answer
67 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 ...
0
votes
1answer
169 views

tmux Meta-N not working

Recently, M-2 (and the other M-N's) have stopped working for me in tmux. M-Up, M-Down, etc still work. It only seems to affect the M-NumberKey key chords. I can run: select-layout even-vertical ...
6
votes
1answer
178 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 ...
0
votes
0answers
98 views

Unable to run tmux on OS X

So I got brew on my mac and I had tmux installed and running just fine. Then after I refreshed my system every time I try to run tmux i get this error: "-bash: tmux: command not found" So since I'm ...
3
votes
2answers
523 views

Can't compile tmux with iTerm support

I'm trying to compile the tmux that has iTerm2 support. This is the error I get: configure.ac:105: error: possibly undefined macro: AC_SEARCH_LIBS If this token and others are legitimate, ...
2
votes
1answer
967 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 ...
1
vote
1answer
289 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() { ...
0
votes
1answer
33 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
1answer
615 views

How to execute a cleanup command on tmux server/session exit?

To improve my workflow a little I have written a few wrapper scripts to automatically start some commands when I want to work on a project. When I'm done however, and clean all the tmux tabs for this ...
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 ...
7
votes
5answers
3k views

Binding a tmux key to multiple commands

I launch multipane tmux window to monitor several server parameters. With Ctrl-S I can open a new window with another monitor command. Now I want to bind Ctrl-Q to open another multipane window with ...
0
votes
0answers
22 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
0answers
279 views

How to see images in tmux

I browse w3m with an images plugin. On normal terminals and even (typically minimally-featureful) virtual terminals I can see images. But when I browse with w3m in tmux the images don't show up. If ...
4
votes
3answers
2k 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.
1
vote
1answer
134 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 ...
0
votes
0answers
24 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> ...
1
vote
0answers
200 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 ...
35
votes
15answers
19k 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 conflictes at least with other programs?
45
votes
4answers
19k 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
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
95 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
71 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
1answer
207 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 ...
1
vote
1answer
119 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
398 views

convert screen hardstatus to tmux

I'm a longtime screen user, but the move to tmux is growing inevitable. I have a fairly large .screenrc that I am working toward porting to tmux (I'd like the bulk of my existing workflow to just ...
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 ...
0
votes
1answer
104 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 ...
1
vote
1answer
123 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
202 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
971 views

How to set the default path/directory to the directory where the session was started?

I'm using an old version of tmux (v1.5). How can I configure tmux to set the default directory to the directory where the session was started? This isn't a problem with newer versions of tmux (1.7 ...
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
1answer
84 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
0answers
47 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 ...
3
votes
3answers
672 views

tmux - Insert a window at a specified position

tmux has the "move-window" command with which you can move a window to a specified empty index like so: move-window -t 3 However, if index 3 is already taken you will not be able to move your ...
0
votes
0answers
37 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 ...
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
2answers
57 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 ...
0
votes
1answer
58 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
42 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 ...
1
vote
2answers
71 views

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

Suppose I have three panes stacked up horizontally 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 ---------- ...
0
votes
1answer
99 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 ...
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 ...