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

0
votes
1answer
5 views

tmux scrollback buffer limited to current screen - scrolling doesn't show previous actions' output

After upgrading to El Capitan, my tmux scrollback buffer is limited to a single screen. If I scroll up, I can see output from Mac Terminal, but all tmux output is truncated. In the screenshot, you ...
1
vote
2answers
28 views

How to view logs online during heavy usage with screen, tmux or Byobu?

Normally I use tail -F, but on heavy usage it is getting irresponsible and unreadable. On ssh I also use buyobu to type password only once. But when any of screens become irresponsible then all ...
68
votes
5answers
30k 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 ...
9
votes
2answers
4k views

Remote server, iTerm2, and tmux integration

I want to be able to start a tmux session on a remote server, and then use iTerm2's native windows and split screens on my local machine. For example, let's say my remote server has a tmux session ...
6
votes
3answers
2k views

With tmux on OSX, how can I make command+k clear more gracefully?

When I use the terminal in OSX, I frequently use ⌘+K to clear the screen and scrollback buffer. It's deep in muscle memory. I've started tinkering with tmux, and one gripe is that ⌘+K wipes the whole ...
54
votes
16answers
34k 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 ...
0
votes
2answers
60 views

Pass mouse events through tmux

I have noticed that scrolling in tmux is a hazzle and was wondering if it was possible to have tmux pass them along to the application or terminal. I may be understanding things wrong here but I have ...
41
votes
2answers
6k 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 ...
0
votes
0answers
16 views

Why are my TMUX session options (set-option blah) always being applied globally?

Terse How can I set a different status-bg color in two different TMUX sessions? Why are environment variables acting unexpectedly in .tmux.conf? Verbose Different colors for the status bar I have ...
0
votes
1answer
24 views

Ubuntu virtual terminal cursor style resetting

I am running Ubuntu 14.04 and using one of the virtual terminals (TTY[1-6], accessible via Ctrl-Alt-F[1-6]); I want to permanently change the appearance of my cursor from the apparent default, a ...
1
vote
0answers
224 views

tmux search is sensitive to line wrap. Can I disable this?

When I size my terminal window so a long line is wrapped like: ----------- | hel| |lo | |> | ----------- and search backwards for "hello" in copy mode nothing is found. When I ...
0
votes
0answers
2 views

tmux spawn new ssh session same machine as current session

If I have an active ssh session in tmux and want to run a long-running command that logs to stdout without backgrounding it. Right now I get another session by creating a new window and sshing into ...
2
votes
2answers
219 views

tmux printing u'0x001b' and “]112” randomly

So I've lived with this problem for several weeks now, hoping that if I just let it happen enough, I would figure out the underlying trigger. No luck. tmux in bash in gnome-terminal in XMonad on ...
2
votes
2answers
126 views

how to show different status when shell idle in tmux

I'm running multiple screen by tmux. I wish tmux could show 'red' color status if one window stop send out any text for some seconds. Is there that function?
1
vote
2answers
70 views

Tmux option window-status-activity-style refuses to override window-status-format

I'm trying to have tmux draw my attention to background windows when they have new activity in them, but I'm having trouble with the various -activity- options. It seems as though any setting I give ...
0
votes
0answers
8 views

How does one set automatically that vi is the key bindings during copy mode in tmux?

I thought it would be as simple as putting: set-window-option mode-keys vi but its not. I get the error: /Users/my_useranme/.tmux.conf:19: can't establish current session ...
6
votes
3answers
2k views

Difference between tmux and shell split options on iTerm2?

I currently switched to iTerm2 + VIM for my dev environment. I noticed that the last version of iTerm2 supports tmux and there were people using tmux to split the window into several sessions. I also ...
549
votes
7answers
221k 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 ...
186
votes
11answers
59k 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 ...
0
votes
0answers
6 views

tmux/byobu name windows based on working directory

If my CWD is /some/path/projects/foo/other/dir, I'd like the window to be named foo (as opposed to the name of the command running in that window). How would I do this?
18
votes
3answers
9k views

Can I set a default title for a tmux window?

Right now the title defaults to reattach-to-user-namespace (OS X), which is pretty annoying. Is there an option I can put into my tmux.conf to get another default title? If not, how would I make a ...
8
votes
2answers
3k views

How to close a tmux session

I am using tmux to manage multiple terminal windows. Currently I have 2 windows open with multiple panes. I know that I have to use the prefix (for me it is ctrl+a) to enter commands. How can I ...
133
votes
1answer
41k views

How do I rename a session in tmux?

When I first started using tmux, I didn't give my first session a name. Then, as I started creating different sessions for different tasks (work, play, etc), I started naming my sessions. Now I have ...
1
vote
1answer
9 views

bind tmux prefix key to option-a

I currently have my prefix key as set-option -g prefix C-a However, I want to change it from the C or control key to the option key which sits directly to the right of the control key. It's easier ...
0
votes
0answers
9 views

Fullscreen TMUX sessions selection

I've found TMUX's choose-tree command to be quite useful when navigating between sessions, but I dislike it only displaying inside of the current pane. I'd prefer it to overtake my entire screen. ...
0
votes
0answers
8 views

Unable to scroll a tmux pane terminal UP/DOWN with mouse scroll button in tmux [duplicate]

I set mode-mouse off since I wanted to copy a word by double clicking instead of using SHIFT and left click, but now I am unable to scroll up/down a particular terminal running in a pane/window using ...
0
votes
1answer
16 views

Moving from screen to tmux but having trouble in copying (double click doesnt work in tmux)

While in putty double clicking a word copies it to clipboard, I am unable to copy by doubling clicking when I am using tmux in putty. I am able to do it using SHIFT key, but I want to do it without ...
-1
votes
1answer
11 views

tmux detach session remote

I run at first terminal tmux, then I run another terminal with tmux and attach to session which I run at first terminal. First is smaller than second and I can't go to it to do something. How to ...
6
votes
3answers
4k 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. ...
85
votes
7answers
39k 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, ...
15
votes
2answers
3k views

LSOpenURLsWithRole() failes with error -10810 on Yosemite from within tmux

Trying to open an application from the commandline (Terminal.app), inside tmux (installed through MacPorts, version 1.9a), and getting the following result: $ open /Applications/Adobe\ Reader.app/ ...
0
votes
0answers
19 views

How do I automatically ssh in tmux if I open a new pane or window from an ssh pane or window?

I'm a bit of a novice to the darker and way awesomer side tmux (as in I've been using it for a while, but really want to start customizing it and tailoring it to work well for me), and so there may be ...
0
votes
1answer
11 views

change shortcut for visual mode

I would like to change my .tmux.conf file to reflect the following change: Ctrl+b "[" -> toggles visual mode to Ctrl+b "v" is it possible? how?
0
votes
1answer
12 views

tmux change copy mode key maps

Is it possible to remap the controls in the copy mode of tmux? I want to remap a few keys in the vi layout of the copy mode. Yes, I've googled the problem. A lot. I haven't found a way to remap the ...
0
votes
1answer
4 views

Separate visual styling for sessions in tmux

I wanted to set my status bar to be green in one session of tmux and red in another, but when I change it in one via command mode, the color status bar in the other session changes as well. Is it ...
0
votes
0answers
20 views

Stuck in insert mode in tmux

I'm doing something accidentally that makes me stuck in insert mode while in tmux. I have no idea what I'm doing or how to set it back. Outside of tmux not a problem. Pressing the insert key does not ...
1
vote
0answers
19 views

tmux mouse passthrough mode?

How do you make mouse-wheel scrolling in tmux work with programs such as less and man? It will work properly with emacs and vi/vim in xterm mouse mode, but less doesn't. EDIT Is there a way to have ...
65
votes
7answers
31k 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?
65
votes
6answers
33k 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 ...
18
votes
2answers
4k views

How does one swap two panes in Tmux?

I have two panes in horizontal split. I'd like to have the pane currently on the right to be on the left in the window. I'm not talking about moving the focus (Ctrl+B o). How do I achieve this? 'left ...
6
votes
4answers
813 views

If I have left and right tmux panes, how can I visually tell which is focused?

I've tinkered with tmux and have seen settings that would highlight the border of the active pane. This works fine for three or more panes. However, my most common usage would be two panes side by ...
1
vote
1answer
18 views

Automatically kill tmux session on session end?

I have the following snippet in my .bashrc which starts tmux whenever I'm at the command line: # Start inside tmux if [[ $(command -v tmux) ]] && [[ -z $TMUX ]] && [[ $TERM != ...
31
votes
2answers
4k views

Can't resize vim splits inside tmux

Everything is working fine outside of tmux. But in tmux I can't resize vim splits with the mouse. I have set mouse=a in my .vimrc. Is there a solution for this? .tmux.conf: $ cat ~/.tmux.conf ...
7
votes
3answers
8k views

Adjusting screen split pane sizes in tmux

I'd like to resize the panes so I can expand / compress the pane sizes (up / down / left / right etc) .. Any way to get this done?
121
votes
9answers
34k 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 ...
9
votes
7answers
13k 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. ...
0
votes
1answer
27 views

tmux: Configure center of status line

I am using tmux on different servers, and like to show the hostname of the current host in a prominent position in the top center. On the man page, I only found options to set the right- and ...
1
vote
0answers
12 views

Multi-page output :: text select with tmux over ssh

I have a local terminal within tmux. Now I connect to a remote server via SSH and run some command piped to less. With tmux I can easily select part or the entire screen, however I can not select text ...
0
votes
0answers
14 views

Save a command output to tmux buffer

Is there a way to place output of a command to tmux buffer. I know I can switch to copy mode, select and copy. However, I would prefer a command-line method. For example, I have a command find $PWD ...
15
votes
5answers
5k 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 ...