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
1k views

Is it possible to search tmux scrollback history?

I'm starting to use tmux, and I already love it. But if I could search through scrollback history it would be even better (e.g. like in iTerm2). Is there a way to do it as of now?
0
votes
0answers
235 views

Tmux visual artifacts, strange character map

It’s running a java program outputting console log. Config file # visuals set -g status-bg black set -g status-fg white set -g status-left '#S (#[fg=green]#(whoami)@#(hostname)#[fg=white])' set -g ...
4
votes
1answer
809 views

Correct way to get emacs 16 color support inside tmux?

I'm trying to get a custom color-theme (solarized) setup for my emacs that utilizes a 16 color palette, which I've already set up for my terminal (gnome-terminal). When running emacs from a normal ...
0
votes
1answer
200 views

Setting caps lock key to CTRL but still function as caps lock if I press for long enough in Mac OS X

If possible I would like something similar to this: http://apple.stackexchange.com/a/4815/31313 Basically a simple script that detects when I'm in tmux, if I am change the CAPS lock key to be a CTRL ...
2
votes
1answer
127 views

Irssi in tmux - Messages overwritten

I'm trying to run Irssi in tmux, and I've been coming across something strange. Whenever a new message is received, it overwrites the last message. For example, say the following chat log is in my ...
3
votes
1answer
69 views

Is there a way to disable closing panes in Tmux?

I am using tmuxinator. Here is my project file. project_name: Network project_root: ~/Code/Network tabs: - editor: vim - worker: layout: ...
2
votes
1answer
182 views

Can tmux and a SSH-client on Windows be more integrated?

I am using tmux on my Debian server and PuTTY on Windows. This works as expected, but sometimes I wish, to have a more Windows like feeling when working via SSH, eg. have separate windows for the ...
3
votes
1answer
113 views

'subl -w' doesn't ever un-block when running under tmux on OS X

On my mac, I have $EDITOR set to 'subl -w'. If I run my shell session under tmux, it opens the editor fine, but the command on the terminal never exits. However, this works fine on a terminal by ...
2
votes
1answer
329 views

Binding tmux command key to ctrl-\ on mac

I'd like to use ctrl-\ as the command key for tmux. Ctrl-a and ctrl-b conflict with bash and emacs bindings. set-option -g prefix C-\ When I start a tmux session, I get: /Users/justin/.tmux.conf: ...
3
votes
0answers
71 views

iTerm 2 running tmux session causes “startup disk almost full” randomly

Anytime I run a tmux session, disk space will randomly begin filling up and the computer will slow down, then everything goes back to normal. This happens periodically. I am using iTerm 2. Does ...
2
votes
1answer
354 views

tmux: trying to bind utf8 key

I'm using tmux 1.6 with konsole on Fedora 17 i686. I have an azerty keyboard (with accentued chars), and I want ton bind 'ù' key. I made the following ~/.tmux.conf: setw -g utf8 on bind-key ù ...
2
votes
2answers
1k views

Force update for tmux status bar

I'd like to have the current time in my tmux status line. I got as far as: $ tmux set status-right '"#22T" %H:%M:%S %d-%b-%y' This does alter the time in the status line to include seconds. ...
0
votes
1answer
101 views

How do I undo a rebind in tmux?

In other words, how do get back a default behavior? I used this config (from the book tmux - Productive Mouse-Free Development): # Maximize and restore a pane unbind Up bind Up new-window -d -n tmp ...
2
votes
2answers
1k views

Which is the correct way to config the $TERM and tmux?

I am using gnome-terminal with bash. When I set xterm-256color for $TERM and in .tmux.conf most of the things work but when I try to change the colorscheme of vim the things mess up. When I set ...
0
votes
1answer
110 views

Tmux: Automatically run a shell command whenever I switch to that pane?

I would like to have a tmux pane where everytime I switch to it runs a command like git diff so that everytime I switch to it I see a new version of the output. Can this be done?
0
votes
2answers
154 views

Should I invest in learning tmux if I solo code or is it mainly useful for pair programmers? [closed]

Just what the main question says. I'm mainly a solo programmer. Tmux looks interesting but I want to ask the seasoned veterans.. is tmux an every day tool? Or is it just for when you need to pair ...
1
vote
1answer
371 views

tmux — any way to enable scrolling, but not selection?

I like that when mode-mouse is on in tmux, I can scroll through the buffer, but I don't like that I can't copy stuff to my OS clipboard by selecting it (as when tmux is disabled). Question: Is there ...
0
votes
1answer
162 views

tmux combine multiple commands to one vi-copy command or tmux command to yank a line

In tmux, i know we can chain multiple commands to a key by using \; See Here But in vi mode, i want one single key press to go to the beginning of the current line, begin-selection, go to end-of-line, ...
1
vote
1answer
710 views

Home and End keys in Emacs don't work when run from Tmux

When I run Emacs from Tmux, the Home and End keys do not work (Home key runs the Search command as if C-s was pressed). The problem started when I added this in my ~/.bashrc file: TERM="xterm" export ...
2
votes
1answer
207 views

Is it possible to automatically attach to a tmux session using Chrome's Secure Shell extension?

Using Secure Shell in Chrome, can you automatically attach to a tmux session when SSH-ing to a server? If so, how do you do that?
2
votes
1answer
76 views

Keep tmux title from `fg` to original jobname

I'm using Eevee's .zshrc/.tmux.conf. When I'm running a vim session, and I do Ctrl+z and then ⚘ fg, then it changes my tmux pane title to fg. I'd rather it change back to vim whatever.txt, or ...
3
votes
1answer
73 views

Two rows of windows in tmux

I tend to have several windows open in tmux at once. I also automatically name them according to which task I'm working on. As such, I am running out of room for the labels of my tmux windows. Is ...
22
votes
3answers
4k 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?
3
votes
0answers
81 views

tmux link-window to remote window

In a server, there's a persistent tmux session, with several windows running 24/7. At my local computer, I run several tmux sessions, one at a time, depending on the type of work. I wonder if it's ...
3
votes
1answer
5k views

run or send a command to a tmux pane in a running tmux session

I want to write a shell script which will attach to a named tmux session, select a window (or pane) in that session and run a command in that selected window (or pane). How do I do this from a bash ...
2
votes
3answers
991 views

Tmux forgets the directory where the session was created

When I create multiple sessions in tmux, the current directory for every new window in subsequent sessions is set as the current directory for the first one. For example: -> cd /home/one ...
2
votes
1answer
291 views

How to display escaped characters in tmux status bar

i am running tmux from a tty on an embedded linux device. (NOT a terminal emulator) because the screen is rather small, i want to add some "icons" to the tmux status bar. to achieve this, i have ...
0
votes
1answer
169 views

tmux copy mode freezes on a vagrant virtual machine session

I use vagrant for having my development environment on Mac OSX and I use ubuntu within virtual machine for doing the development. I use tmux for multiple session, it works great on Mac OS iterm, but ...
3
votes
1answer
241 views

Tmux select-layout returns with “Can't set layout”

I'm on Mac OS X Lion, and I've installed tmux through brew. I set up a simple window, with a vertical split, and a horizontal split in the right pane for a total of three windows. I also made the ...
1
vote
1answer
570 views

tmux, how to prevent broken pipe?

I'm new to ssh and tmux. I want to run a rake task on a remote server via ssh but I want to shutdown my computer and want the task continue running on the server. So I discovered tmux with seems to ...
7
votes
5answers
618 views

tmux equivalent of “screen -R”?

The tmux attach command acts more like a combination of screen -r and screen -x -- first it trys to attach to the most recently detached session, and then if none is available it will attach to a ...
4
votes
2answers
667 views

tmux / vim split panes

I am borrowing this screenshot from another question: The terminal background seems to leak through into vim left of the dividing border. This is most noticeable near Top. Can anyone tell me ...
3
votes
1answer
277 views

Is it possible to have zsh+keychain+tmux not ask for keys?

I'm using tmux and zsh, and I've recently been learning about ssh-agent and keychain. From the manpage for zsh, it says that it will source .zlogin only if the shell is, well, a login shell. ...
1
vote
1answer
273 views

Clicking far away in vim in tmux in urxvt

I use vim inside tmux inside urxvt, and the mouse works perfectly well for clicking and selecting text, except when I want to click too far to the right. It seems to be related to the distance in ...
3
votes
1answer
736 views

Prevent an already running background process from being stopped after closing SSH client

I have a process running on my Linux machine (Debian squeeze) that takes hours (or days) to finish. I don't want to stop it to restart it again with screen, tmux or with an output redirect to nohup. ...
1
vote
1answer
194 views

How do I correctly rebind select-pane commands in tmux?

By default, tmux seems to be using C-b, Left to move left a pane C-b, Right to move right pane ... I want to use C-b, h to move left a pane C-b, l to move right a pane ... Here's my current ...
4
votes
1answer
1k views

tmux - What does bind-key -r mean?

When I am running in tmux and use C-b ?, I can get a list of all the commands. However, I observe that some commands are bind-key, followed by the command, and others are bind-key -r, followed by ...
1
vote
0answers
185 views

Ctrl-C does not work in tmux window

I have a Mini2440 ARM Board, and I have put a base Debian 6.0 system on it using multistrap. I have used tmux to run several processes in defferent windows from /etc/rc.local. I connect to the board ...
5
votes
2answers
517 views

Get irssi to beep on new message in tmux session

I have a tmux session with several windows. One of those windows is running irssi. I spend most of my time connected to one server and in one channel, so I'm not really changing windows inside ...
3
votes
2answers
654 views

Updating window indexes with tmux?

Using tmux, I closed a window indexed 3, so now I have 1,2,4, ... I'd rather have windows sequential, so is there any way to force them to re-index?
2
votes
2answers
801 views

Why won't top command show the right result?

You want to find the line 3427 1 root S 36964 124% 2% tmux -L l in the following screenshots of top command. Why can tmux use more than 100 percent of memory? That is confusing... Is ...
1
vote
2answers
246 views

Is it possible to spawn an ssh-agent for a new tmux session?

I've seen lots of hacks for re-establishing contact with a GUI session's SSH agent from within tmux (and screen) sessions. I'm wondering if it's possible to de-couple from the GUI and spawn an ...
3
votes
1answer
148 views

tmux can't handle short cuts that use my alt key

tmux can't handle short cuts that use my alt key For example: bind-key -n M-l next-window bind-key -n M-h previous-window I have noticed that when I type M-l and M-h in my shell I get these ...
7
votes
2answers
934 views

How can I prevent tmux exiting with Ctrl-d?

I use tmux on my server and recently I found to my cost that ctrl-d will exit tmux and lose all the session information, my intention was to simply end the ssh session but failed to notice I was still ...
0
votes
1answer
71 views

How to switch to another window when Ctrl + B does not work for tmux?

As we all know tmux is quite nice tool, but there are some scenarios that Ctrl+B cannot be used. For example, when I sshd to server A and now I connect to A's tmux pty. So Ctrl+B is captured by ...
3
votes
1answer
188 views

tmux session switcher now displays windows belonging to sesions

I recently compiled tmux from source rather than going through homebrew for some reason I can no longer recall. At the same time, switching sessions via ^b sstarted to display all of the windows under ...
6
votes
1answer
452 views

Native xterm mouse scrolling in tmux

I have decided to try tmux as GNU screen replacement and wonder if there is a way to scroll with mouse as in xterm? It is possible to enable native xterm scrolling with Shift + PageUp in tmux by set ...
1
vote
1answer
243 views

Tmux causes Emacs glitch

Recently I started using Tmux, but I noticed that it causes a strange Emacs glitch. When I open source code for elisp or haskell, the comments aren't highlighted. Only the comment sign is (; in case ...
2
votes
1answer
127 views

tmux - How to start executable initially?

With GNU screen I could do, for example: screen -S monitor top A screen would start executing top, and if top ended the screen session would end. Is there a way to do the same thing with tmux? ...
1
vote
1answer
686 views

tmux - How to NOT automatically exit copy mode when scrolling down?

This question ( Scroll shell output with mouse in tmux ) already answers the base question of how to mouse-scroll UP in tmux, but this method also automatically exits copy mode once it detects a ...