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.
48
votes
8answers
8k 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 ...
19
votes
2answers
9k views
256 color support for vim background in tmux
while using vim within tmux I can see that 256 color support is enabled. with $tput colors
However changing the colorscheme in vim while in tmux will change the colorscheme on a per line basis but ...
133
votes
3answers
43k 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 ...
14
votes
3answers
2k 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?
1
vote
4answers
2k 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 ...
3
votes
1answer
321 views
ssh-agent key timeout with screen or tmux on bastion host
Normally I have ssh-agent running, I ssh to my bastion host then open a tmux session and connect to other boxes through that. Key forwarding works for any sessions that I open from that point ...
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.
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 ...
38
votes
5answers
10k views
tmux vs. screen
I'm about to get back into using 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, such ...
20
votes
2answers
5k views
Restore tmux session after reboot
Is there any way to save a tmux session? In other words, if I reboot the computer, will I always lose the sessions?
13
votes
4answers
12k 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 ...
43
votes
5answers
16k 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 ...
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 ...
16
votes
13answers
8k views
What's the best prefix/escape sequence for screen or tmux?
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?
9
votes
4answers
6k views
Byobu versus gnu screen versus tmux
So far I have used konsole to manage multiple shell sessions but it seems that byobu, gnu screen, and tmux offer a better support for multiple shells. I have never used neither of them before. One of ...
11
votes
2answers
3k views
How to get shift+arrows and ctrl+arrows working in Vim in tmux?
This is all in iTerm2 on OS X.
I used to have
export TERM='xterm-256color'
in my .bashrc. This meant Vim in tmux did use 256 colors.
And once I added
set -g xterm-keys on
then keyboard ...
9
votes
1answer
3k 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 ...
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?
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 ...
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 ...
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?
5
votes
1answer
2k 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 ...
3
votes
4answers
5k 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. ...
2
votes
3answers
537 views
Why are random letters inserted in my tmux session?
Sometimes when I use the mouse, or press and hold a movement key in tmux, random characters are inserted. For example, when I press the left movement key D is often inserted. A left mouse click often ...
1
vote
1answer
816 views
Solarized background colour off in emacs under tmux
Exhibit I: plain Emacs.
Exhibit II: Emacs under tmux.
The shades of colours are different, and importantly, the background colour differentiation is nil (e.g. look at the top menu). Anyone run ...
0
votes
2answers
389 views
tmux chain keyboard shortcuts, or equivalent for screen's `bind -c` + `command -c`
One nice feature of screen is its ability to assign keyboard shortcuts to groups called "classes". With bind -c, you could assign that shortcuts to a particular class, and binding command -c ...