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

7
votes
1answer
12k views

tmux Ctrl-b not working

Holding CTRL and B followed by another command key usually gives me nothing. I have no .conf file so I'm not overwriting it.
27
votes
2answers
9k views

Tmux: How can I link a window as split-window?

how can I grab a window from totally different tmux session and attach it as a horizontal/vertical split to current window?
29
votes
1answer
12k views

Disable the status bar in tmux?

I want to disable the default status bar on tmux. I prefer to treat screen/tmux as persistant session managers, and deprecate the menu/window stuff in favor of my system window manager. I suspect Tmux ...
3
votes
2answers
2k views

How can I keep the tmux prefix key pressed between commands?

In GNU screen, I can keep Ctrl+a pressed in between commands. For instance, to change windows I keep Ctrl+a pressed and just keep pressing n without releasing Ctrl+a. Is this doable in tmux? ...
1
vote
2answers
2k views

Bash scripts with tmux to launch a 4-paned window

Can anyone help explain what's going on with tmux, bash, and exec? I'm trying to set up a tmux session with a 4-pane window. Ideally, I want to run a command in 3 of the panes: e.g. a Ruby Thin server ...
1
vote
1answer
256 views

In tmux how should I bind a key in the 'emacs-edit' table?

I find that when I am editing a command in tmux, the M-b and M-f are not bound. I tried the following: tmux bind-key -t emacs-edit M-b previous-word But tmux says that's a unknown command. What ...
1
vote
1answer
868 views

Macports - Tmux status bar config

Anyone know where this is located? I tried the usual directories that macports uses and there's nothing in my home directory.
13
votes
5answers
16k views

bind tmux prefix to OS X cmd key (or any other binding)

I'm used to iTerm2 (or Terminal.app for this case) on OS X. But I want to move to use tmux (or screen, but the problem is similar to both apps). So my idea is to have a single iTerm tab with a tmux ...
2
votes
1answer
461 views

Why do I have multiple tmux processes?

I use tmux attach to start tmux and have the following lines in my tmux.conf: new -n TeX bash neww -n Shell bash After starting the terminal emulator and running pgrep I get the following: ~ ...
4
votes
1answer
3k views

iTerm2 and tmux integration

I would like to achieve the following behaviour: When I launch iTerm2, if there is a tmux session running, connect to it. If there is no tmux session running, create one and connect to it. Any ...
69
votes
7answers
35k views

How can I make tmux use my default shell?

On a new setup, tmux is using bash instead of my default (zsh). How can I force it to use zsh?
7
votes
1answer
4k views

How to enter copy mode on mouse scroll in tmux?

The mouse scroll wheel does not work when not in copy mode. I'm not sure whether it is supposed to be working then? When in copy mode, the scroll wheel does work. The problem is that I still need to ...
46
votes
3answers
7k views

Slight delay when switching modes in vim using tmux or screen

Switching to and from insert mode in Vim is no longer instantaneous since I use tmux. After pressing Esc in insert mode, it takes a noticeable amount of time to actually get out of insert mode. After ...
6
votes
2answers
4k views

Customizing tmux status to represent current working directory and files

I've been playing with this for a couple of days, so I'm sure I'm missing something simple. Love tmux. Using it for development and have so many windows I need a better way of distinguishing them in ...
37
votes
3answers
28k views

How to detach a tmux session that itself already in a tmux?

I've opened a tmux session on my local machine, and ssh to the remote machine. After this, I typed command "tmux attach" on the remote machine, then I got a remote tmux session on my local tmux ...
11
votes
7answers
15k views

rename tmux window name to prompt_command, ps1 or remote ssh hostname?

I would love to be able to have my tmux window title automatically renamed to prompt_command, ps1 or just the hostname of a machine I ssh to. having 9 windows opened labeled "ssh" is really useless. ...
1
vote
1answer
724 views

Is there a way to launch a command within a proper zsh shell? [duplicate]

Possible Duplicate: invoke zsh, having it run a command, and then enter interactive mode instead of exiting I'm not really clear with my question here, let me rephrase it : I've setup a ...
7
votes
3answers
1k 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 ...
17
votes
3answers
4k views

copy-paste not working in MacVim when launched in tmux

MacVim's copy-paste stops working when I launch it from a tmux terminal (on zsh). If I exit tmux and then launch MacVim copy-past works. Any idea how to fix this?
2
votes
1answer
841 views

Binding number keys in tmux

Is it possible to bind C-1 in tmux? When I try it I receive an error: unknown key: C-1 Here's what I'm trying: bind-key -n C-1 select-window -t 1
211
votes
13answers
65k views

How do I reorder tmux windows?

In screen, I can just type C-a :number 0 to move a window to the top of the window list and push all the other windows down one. What's the equivalent command sequence for tmux? I looked at the man ...
3
votes
3answers
663 views

Sending Commands to tmux Running in tmux

I'm using tmux to manage my windows, etc, and one of the things I do is SSH to a remote server and connect to a tmux session running there. Once there, however, I cannot sent C-b through to that tmux ...
130
votes
9answers
38k views

“Maximizing” a pane in tmux

Sometimes it would be very useful to maximize a pane in tmux and then restore it to it's previous size. I've been reading the manual and I can't find a way. What I've come up with is that I could ...
27
votes
2answers
9k views

Binding a command in tmux without using the prefix key

Is it possible to bind a tmux command to a key combination and use it directly without first pressing the prefix? I find C-b + n too cumbersome to switch panes, so I was wondering whether I could ...
17
votes
6answers
8k views

How can I get ssh-agent working over ssh and in tmux (on OS X)?

I have a private key set up for my github account, the passphrase to which is, I believe, stored in OS X's keychain. I certainly don't have to type it in when I open a terminal window and enter ssh ...
4
votes
6answers
6k 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 ...
13
votes
1answer
9k views

Configuring TMUX's status bar

I want my tmux session to show my current ip address in the right hand side of the status bar but I am having the hardest time figuring up the right syntax. The command works perfectly in the shell, ...
47
votes
5answers
7k views

Unable to use pbcopy while in tmux session

Running tmux 1.4 installed from ports on snow-leopard I am unable to use the built in OSX pbcopy command. Outside of tmux: > echo "abc" | pbcopy > echo $(pbpaste) # or using ^v abc But ...
65
votes
1answer
32k views

How can I search within the output buffer of a tmux shell?

I can't get this to work. How can I search the buffer of a tmux shell?
96
votes
7answers
46k views

tmux vs. screen

I'm about to get back into using GNU Screen, but I have been hearing people occasionally mention tmux as a better alternative. Does it really offer an alternative to all the features Screen offers, ...
14
votes
5answers
7k views

alternatives to Gnu screen under Cygwin

Are there any terminal multiplexers for Cygwin/Windows other than Gnu's screen? I know of 2 alternatives to the Gnu's screen application: Byobu and TMux. However, neither of these run under Windows ...
4
votes
1answer
1k views

MacVim + tmux or: The Copy Paste Riddle [duplicate]

Possible Duplicate: copy-paste not working in MacVim when launched in tmux Now this is weird. Copied a chunk of a text from somewhere into clipboard. Ran mvim from a tmux buffer. Opened a ...
4
votes
1answer
1k views

tmux compilation error in andLinux (Ubuntu)

I'm running andLinux which is based on Ubuntu Jaunty. I'm trying to compile tmux 1.3 on that system and I get the following error message. I've already installed libevent-dev. server.o: In function ...
3
votes
2answers
3k views

How to find which Tmux session a process belongs to?

Case in point is editing a configuration file in vim and inadvertently leaving it open. Then you go about your business, switch around in different Tmux sessions, eventually edit the same file from ...
153
votes
7answers
62k views

Scroll shell output with mouse in tmux

Mouse scrolling doesn't work in tmux the way it works when I run shell without tmux (in Gnome Terminal). It seems tmux sends mouse scroll events as if I pressed Up/Down keys. But I want it to scroll ...
3
votes
1answer
1k views

Can tmux be used in multi user environments safely?

I could not find docs on how tmux clients and servers commmunicate. I would like to use tmux but it cannot be deployed if it only uses sockets for this. fifo's or pipes would be ok as long as fifo's ...
611
votes
8answers
253k views

How do I scroll in tmux?

I just started using tmux, and I really like it, but I need to be able to scroll within the buffers/panes/windows I have open. I don't care if it works with the mouse or not. When I search the tmux ...
6
votes
4answers
5k views

Launching tmux using gnome-terminal

I'm a little confuse regarding how one launches tmux. When I launch my terminal (current gnome-terminal), I would like to have tmux up and running. I'm currently doing this by calling "tmux" in my ...
25
votes
6answers
31k 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 ...
3
votes
2answers
1k views

Installing tmux on Ubuntu from source

I've download tmux and am trying to install it on Ubuntu 10.04. $ ./configure Configured for Linux $ make cc -DBUILD="\"1.3\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -c -o attributes.o ...
38
votes
4answers
35k views

selecting text tmux copy-mode

I run tmux in VI mode. VI-like navigation in copy-mode works fine. However, I can't select any text. Neither v nor V doesn't switch to VI-like text selecting mode. What am I missing? By the way, is ...
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 ...
9
votes
2answers
2k views

Is there a way to have shared control tmux session?

I'm looking for something similar to the screen -x of gnu screen for Linux
43
votes
5answers
16k views

tmux disregarding the configuration file

I just installed tmux on Ubuntu 10.04 and tried to remap the prefix key to C-a by creating the file ~/.tmux.conf with these lines: set-option -g prefix C-a unbind-key C-b When starting tmux, both ...
57
votes
18answers
37k views

What's the least conflicting prefix/escape sequence for screen or tmux?

Screen goes with Ctrl+A. tmux on the other hand—as developed within screen—uses Ctrl+B. Both keystrokes, however, are also used in editors, shells, etc. Thus choosing either one degrades ...