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

2
votes
1answer
1k views

How do I bind the tmux prefix key to C-'?

I'd like to set my tmux prefix key to Ctrl-apostrophe, but when I use set-option prefix "C-'" or set-option prefix C-"'", tmux complains that "unknown key: C-'". Similarly for ` and :. Is there a way ...
4
votes
2answers
1k views

tmux copy mode - select text block

I'm using tmux with vi keys, and copy/paste works fine as long as you're selecting one line of text, or if you have only one window. When I want to select a block of text (multiple lines, but not full ...
3
votes
1answer
420 views

tmux equivalent of screen's 'at' command?

GNU screen has a command, at, which lets you control other sessions by sending screen commands to them. Does tmux have something like that? I tried send-prefix and send-keys, but those send keys to ...
2
votes
2answers
594 views

Get current window number for bash prompt

I want to replace status bar with bash prompt displaying window number like ①. How can I get current window number in the shell? There's TMUX_PANE env variable, unfortunately no TMUX_WINDOW. The ...
0
votes
2answers
275 views

vim : <c-a> occupied from tmux/screen

I use screen/tmux and vim. In vim, I can't use <c-a> for increment a number, <c-a> is occupied from screen/tmux. any suggestion for a simple map for increment a number ? I try with ...
6
votes
5answers
2k views

Using tmux with both emacs and vim

What is the best default key binding for tmux and why if one sometimes uses emacs and sometimes uses vim (on Linux Mint 12)? Ctrl-b is OK, but that conflicts a bit with the bash shell and emacs.
4
votes
1answer
529 views

Looking for non-conflicting cross-platform keybinding consistency

I use Mac OS X and Arch Linux and occasionally log into FreeBSD and Debian servers by ssh. My favoured tools are zsh, ssh, tmux, git, vim and irssi. I use iTerm2 on Mac OS X and unicode-rxvt on Arch ...
2
votes
1answer
2k views

Vim through Tmux looks completely out of whack, is there a way to fix this?

When SSH'd into another machine, I use Vim as my text editor, and I'm trying to add Tmux to my tool set as well. However, when I use vim through Tmux, the colors are completely wrong, and Vim is ...
3
votes
1answer
993 views

Bind Ctrl-Tab to cycle through windows in tmux

I'm trying to figure out how to bind ctrl-tab to cycle through all open windows, I've tried: bind-key -n C-Tab select-window -t :.+ which says Unknown key. What am I missing? Note: I don't want to ...
2
votes
1answer
296 views

Move already running program into screen

Is it possible to have a already started program move to screen/tmux? I'd like to have something like the following: program; ^Z screen; fg; I know the above won't work, but is there a way to ...
1
vote
2answers
2k views

tmux keyboard shortcuts not working properly

I've started using tmux of recent, and changed the bindings so that it would respond to C-a instead of C-b. These are the lines in the .tmux.conf file to do this: unbind C-b set -g prefix C-a But, ...
0
votes
1answer
156 views

Terminal keystrokes confusion

#1 tmux ignores some keystrokes: Ctrl + Delete Ctrl + F* #2 Something similar happens in virtual consoles (even without tmux) with the difference that Ctrl + Delete and Delete behaves the same. ...
2
votes
2answers
784 views

Sending commands to parent tmux session from vim

I have a split window setup with vim and Lynx in tmux. I'm trying to build a script so that I can send a custom command to vim which will save the script I'm working on, switch focus to the Lynx pane, ...
9
votes
2answers
1k views

How can I make ctrl+left/right keys work right in tmux?

In both zsh and bash, ctrl+arrows allows me to move the position I'm typing at by whole word, but this does not work in tmux, which is a problem as I'm currently launching it automatically every time ...
0
votes
1answer
227 views

TMUX: Limit tab's characters

Whenever I listen to music with Music on Console, the tab will display the song’s title, and it is long, it takes up the entire width of my status bar. I want to limit X amount of characters ...
3
votes
1answer
1k views

Is sharing a tmux sockets between hosts possible?

I'm wondering if it's possible to share a tmux server socket between different hosts. For example, I have a virtual machine (guest) running inside my host, and I'm running a tmux session in the guest, ...
1
vote
1answer
1k views

Cannot resize tmux pane from bash script

Background and Problem: I have created a tmux script to open a few windows. It works great but then I wanted to place a vertically split pane on one window and resize it to 5 characters tall. I ...
2
votes
5answers
2k 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 ...
1
vote
0answers
102 views

Can tmux list tabs vertically?

Is there a way to get the list of active tabs in tmux to be vertical along the left edge of the window? (Like chrome's --enable-vertical-tabs)
0
votes
1answer
2k views

Can I connect to a tmux session on a server _without_ sharing it with another user or detaching his session?

If I connect to a tmux session with the tmux a command, I end up sharing the session with a friend and we cannot work on our own thing (since we have to work in different windows). On the other hand, ...
6
votes
1answer
2k views

tmux refresh display after terminal width change

With screen, in a terminal that's 80 columns wide, I can do something like: for i in $(seq 81); do echo -n "m"; done; echo and then resize the window to be a little wider, and the last 'm' jumps up ...
3
votes
2answers
836 views

tmux: Cannot SSH from inside tmux, even though I have agent-forwarding (ssh -A) on

So I have keys to some servers stored locally on my MacBook, but I work from inside a Virtual Machine a considerable amount of time, so I SSH to the VM with ssh -A. This allows me to SSH to servers ...
1
vote
1answer
1k views

UTF-8 Not Working in PuTTY when using SSH Remote command

So. I am using PuTTY to connect to a remote server that has an irssi client running for me constantly through tmux. Connecting to the server, and typing "tmux attach" works fine and everything works ...
1
vote
1answer
608 views

How to turn down the timeout between prefix key and command key in tmux?

My ~/.tmux.conf: set -g prefix C-a unbind C-b bind C-a send-prefix bind-key o split-window -v bind-key e split-window -h bind-key w kill-pane (to make the command keys same as GNOME Teminator) ...
4
votes
1answer
2k views

tmux: sharing current window title (#T) from within nested tmux sessions

I have begun using tmux recently to really improve my terminal sessions. One thing I need to be able to do is connect to a remote server, which is also running tmux. However, I have found that the ...
3
votes
2answers
3k views

How to make a pane width of tmux fixed?

Say I split a window into 2 panes, the right one has width 20 cells. But when I resize the outside terminal emulator, the pane's width changes. Is there any way to fix this? Because I wanna display ...
1
vote
1answer
461 views

tmux: Link panes?

Is it possible to do this? I've got a window 'dev' with several panes in it. One of those windows is an irssi process. Is it possible to make that same irssi process appear in window 'play' as another ...
12
votes
1answer
3k views

Use terminal scrollbar with tmux

I know how to scroll in tmux using the keyboard, but I noticed that it looks like there's a way to use the terminal scrollbar with GNU Screen. Can this be done with tmux?
1
vote
0answers
183 views

Changing puttyTRAY's URL regex in order to match URLs across lines separated by tmux window boundaries

I use puttytray to access a shell account on which I have a tmux instance running. Inside tmux, I have irssi running in a window. When people post long URLs in IRC, however, it's annoying since these ...
10
votes
1answer
3k views

Tmux and ZSH custom prompt : bug with window name

I have customized my ZSH prompt with oh-my-zsh to make it more readable and add information about git if I'm in a repository. Example : bob@inf [~/docs] % bob@inf [~/src/nicest] master % (in a git ...
4
votes
1answer
1k 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.
0
votes
1answer
882 views

Using gray color in tmux status bar

I am using iterm2 on mac os x and I can't get something like color245 to show up as gray, seems like tmux uses black instead. I am using iterm2 on mac os x. Any idea what might be wrong? setw -g ...
12
votes
2answers
2k views

Maximize window in tmux

tmux shows screen like this: [root@wpc-fc2 init]# |············ |············ ...
7
votes
1answer
3k views

tmux and text selection with mouse through putty

I'm running tmux in a putty session. Normally(running just a plain shell or GNU Screen) to select text I'd just left click and drag the mouse across some text. With tmux, I have to hold shift while ...
6
votes
2answers
890 views

tmux status bar messages last only about a second: can I extend this?

I've searched through the man pages several times for a way to set the length of time that status bar messages (what you see if you enter display-message "hello world" at a tmux command prompt) are ...
25
votes
3answers
8k 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 ...
5
votes
2answers
927 views

tmux died and says “no sessions” - is there any way to recover?

This sucks. $ tmux attach-session no sessions My sysadmin upgraded tmux and now I can't reattach. My processes are still running according to ps ux. Is there any hope of recovering my session? ...
1
vote
0answers
508 views

Temporarily full screen a pane in tmux [duplicate]

Possible Duplicate: “Maximizing” a pane in tmux In tmux I would like to be able to make the currently active pane either full screen or become the only pane in a new window ...
0
votes
1answer
274 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 ...
1
vote
1answer
2k views

Running nicklist with irssi using screen inside tmux?

I try to run the nicklist addon with irssi using screen inside tmux but strangely :) it doesn't work and I get the input on top of the screen. Is it possible to run nicklist when you are on tmux?
0
votes
1answer
549 views

tmux deleting currently displayed content when pressing ^L

I have the following options in my .tmuxrc so the PuTTY scrollback still works. setw -g alternate-screen off set -g terminal-overrides ...
3
votes
2answers
1k views

How to make my terminal look like this

I ran across this the other day and was instantly amazed. He says he uses a custom Vim colorscheme (easy) and dwm with tmux. I've downloaded tmux and I'm having some issues with it (my CTRL-b ...
1
vote
1answer
1k 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.
12
votes
2answers
4k 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?
7
votes
1answer
3k 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 ...
2
votes
2answers
660 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
971 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
222 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
704 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.
5
votes
4answers
3k 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 ...