tmux is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.

learn more… | top users | synonyms

6
votes
2answers
404 views

How do I prevent tmux from wrapping around when searching?

When I am in edit mode in a tmux pane and I do a search, once it reaches the end, it goes back to the beginning. Is there any setting to prevent this?
6
votes
2answers
385 views

Execute a process in the current pane, redirecting stdio to/from the pane

GNU Screen has a command called exec that will launch a subprocess and optionally let you do things with its file descriptors, including tying them in your window. I frequently use :exec !! sx -b ...
2
votes
1answer
120 views

How to add tmux confirm prompt when I kill a window?

I see in tmux's list-keys: bind-key & confirm-before -p "kill-window #W? (y/n)" kill-window I use tmuxinator, and will often go overboard on the Ctrl-D, where I accidentally close a window. Is ...
1
vote
2answers
24 views

Can I see what's going on in a tmux session without attaching to it?

Often I'll use tmux to start a task that will be running for a while. I will periodically go back and check on it using tmux -a and then disconnect if it still hasn't completed and check again later. ...
4
votes
1answer
366 views

Set tmux status line color based on hostname

I'd like tmux to pick a color dynamically based on the hostname of the machine. Since I share my tmux.conf across several machines, assigning an unique color for each of those hosts would be handy ...
2
votes
1answer
43 views

tmux vim colorscheme background is not showing

I have installed tmux but now text mode vim colorschemes do not fill the background colour properly. Here is how it looks with colorscheme xoria256 in the normal Ubuntu 14.10 terminal: And here ...
6
votes
1answer
581 views

Escape sequences in output of script called from ncurses application

I'm currently running mcabber as my Jabber client (which uses ncurses) in a tmux session on my homeserver. Locally i run iTerm2 as a terminal emulator, which supports the triggering of growl ...
1
vote
0answers
16 views

Tmux eats control tab sequence

I have ctrl-tab (i.e. ^[[27;5;9~) assigned to switch tabs in vim. It works directly under xterm, but when I also run tmux this sequence works only occasionally. I suppose it is because tmux captures ...
14
votes
3answers
3k views

Shift-arrow not working in emacs within tmux

I recently started using tmux (was a screen user before) and I'm loving it, except for one small problem. I use emacs within my tmux session and I am used to using Shift-arrow keys to move between ...
12
votes
2answers
1k views

Ctrl-C does not work with pppd non-detached session

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 ...
3
votes
2answers
97 views

tmux client/server version mismatch during distribution upgrade

It has become fashionable to run distribution upgrade in a tmux terminal to avoid remote connection issues or issues with the X server (e.g. opensuse documentation). Yet this does not take into ...
3
votes
1answer
207 views

Tmux commands: What is M-whatever

Might be a very silly question to many folks out there, but I'm dense! Ex: Applying predefined layouts: C-a M-1 switch to even-horizontal layout C-a M-2 switch to even-vertical layout ...
6
votes
3answers
4k views

Having tmux load by default when a zsh terminal is launched

My current workflow is: CTRL+SHIFT+T to launch a new terminal window. That starts a new zsh terminal. Type tmux to start tmux. How can I have tmux load by default with a new terminal window?
0
votes
2answers
463 views

tmux with iterm2 attach a remote session

I'm using the Tmux integrating with ITerm2, which can create a tab in ITerm 2 for each window created by Tmux. But somehow this doesn't make much sense for the usual SSH scenario, where we first SSH ...
6
votes
2answers
862 views

How can I forward a already forwarded ssh key into tmux?

I'm connecting through SSH from a machine where my keys are stored, forwarding to a second machine, and then try to use the keys from within tmux. I appear to "loose" the forwarding when entering ...
0
votes
0answers
26 views

Powerline bash prompt not colorized in tmux

The bash/zsh commandline prompt is not displaying colors in tmux, even though I managed to get the powerline itself working (with colors). The prompt works fine in pure bash/zsh. I am getting the ...
4
votes
2answers
64 views

Tmux cannot find window

I am using tmux after logging into our university server. I have multiple screens (created with Ctrl-B c), some for editing different files. Some for running programs. I go through the tasks with ...
1
vote
1answer
13 views

Tmux Keyboard Shortcut

I pasted the following into my ~/.tmux.conf bind -n <C-w>h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L" It now ...
0
votes
0answers
62 views

tmux unable to start a new session? “1;2c”

Introduction I just installed tmux onto my CentOS 7 machine, but I have encountered a bewildering issue. Whenever I try to attempt to start up a session using tmux or tmux new -s session-name, it ...
1
vote
2answers
2k views

How to terminate tmux session and processes it spawned

I noticed that i have a running process and I think it's because i initialized the process in byobu which is using tmux. ps aux | grep sidekiq 1000 13786 0.0 0.0 8108 900 pts/4 S+ ...
1
vote
0answers
37 views

“sticky” escape key in tmux

How would I go about configuring my tmux such that when I press my escape character, it stays in escape-mode until I press it again or press Esc? I.e. so that I don't have to press it repeatedly when ...
5
votes
3answers
623 views

Tmux makes a sound when I launch it, how could I disable that?

When I launch tmux in the terminal, is causes my Linux Mint to play a sound in the speakers. The sound is a Linux Mint system sound. Perhaps it's the "alert" sound, but I cannot identify it by name. ...
0
votes
1answer
38 views

The form of the cursor in vim in konsole in kde with tmux

I use KDE and for vim in Konsole, I have such commands in my .vimrc: " Konsole " solid underscore let &t_SI = "\033]50;CursorShape=2\007" " solid block let &t_EI = "\033]50;CursorShape=0\007" ...
3
votes
1answer
214 views

Waching YouTube videos in bash sessions, in ASCII mode

I already found how to watch YouTube videos in terminal, in ASCII mode, but my goal is to watch them in a bash session, without opening a different window. So, supposing I already have a tmux ...
3
votes
0answers
57 views

How to change background color of a pane in tmux?

I would like to change the background color of the inactive panes in tmux to better distinguish between the active pane and inactive panes. Something just a few shades different than the default. How ...
0
votes
0answers
72 views

Error when running TMUX under CYGWIN

When I run tmux in cygwin command line I get the error: $ tmux 0 [main] tmux 6688 C:\cygwin64\bin\tmux.exe: *** fatal error - NtCreateEvent(lock): 0xC0000077 Hangup I tried to reinstall tmux ...
1
vote
1answer
30 views

How to get guake to update background characters?

This is actually a problem that also goes on with screen. Here is what it looks like (in mutt): When running a terminal application that builds an updated interface from Guake, tmux and screen ...
7
votes
2answers
1k views

Is there a tmux shortcut to go read only?

I've been using screen for years now as a way of ensuring that any remote work is safely kept open in after disconnects/crashes. In fact, as a matter of course, I use screens even when working ...
2
votes
1answer
129 views

tmux: shared session, one user in a pane, another in another pane, two different cursors

I've decided to try tmux: have been reading the docs and googling around, trying to find a way to have two users sharing a session, each with a different cursor. However, giving 777 permissions to ...
1
vote
1answer
39 views

Tmux: how do I bind to C— (control-minus)?

I'd like to bind to control-minus in my .tmux.conf but it doesn't seem to work: bind C-- split-window -v Is this possible?
0
votes
1answer
80 views

SSH to a server, execute update command that continues even after logging off the ssh session

Okay I saw a lot of questions like this, but almost all have either theoretical answers which do clear the concept but I am still not able to put it up in code. What I want to achieve using a bash ...
1
vote
1answer
45 views

how to make a tmux window remain open after running command

I'm fiddling with tmux, trying to make it approximate the behavior I've had screen set up for to meet my quite modest terminal needs (I'm no programmer). I just want it to start a couple of Bash ...
1
vote
1answer
64 views

Neither `less` or `less -X` clear screen on exit

Neither less or less -X clear screen on exit. At the same time, vim does.... Env iTerm2, protocol mosh, server Centos + tmux + zsh iTerm2: report term as xterm-256color tmux: set -g ...
0
votes
1answer
46 views

Can I get my iTerm key-combos working in tmux?

I have some shortcut keys defined in iTerm, and I use them for key-mappings in Vim. For example, I map Ctrl-Enter to send a ^[O2P escape code, which I then use to define a Ctrl-Enter key-mapping in ...
37
votes
4answers
11k views

Write all tmux scrollback to a file

How can I write all the scrollback in a tmux session to a file? capture-panel can grab the current screen, but not the entire scrollback.
1
vote
1answer
695 views

How to get byobu to start at startup with a command executed, as root?

I want when the computer start, a byobu session is started and a command executed in the first window (windows 0), without requiring any user intervention. It is very important that this doesn't ...
2
votes
1answer
58 views

What is tmux's “message-command”?

I've been trying to figure out how to change the background color of the command prompt in tmux's copy mode. It defaults to black on orange, at least on my setup. I changed the color of the command ...
1
vote
0answers
504 views

Terminal colors for Vim Airline and Tmux Tmuxline

When using Vim on its own with Vundle and Airline the theme appears normally: When I have loaded it up in Tmuxline, the theme uses different colors and even Vim looks different: Here's my Tmux ...
10
votes
2answers
3k views

Unlimited history in tmux

In your .tmux.conf file you can set the window history with something like: set -g history-limit 4096 Is there a way to set an unlimited history for each window?
4
votes
1answer
957 views

How to quickly send commands to nested tmux sessions?

I have the following in my .tmux.conf set -g prefix M-j bind-key j send-prefix I need to press (Atl+J) + (J) + bound-key to send something to the nested tmux session. I feel it is rather slow. Is ...
0
votes
1answer
49 views

How to split a new window and run a command in this new window using tmux?

I have tried tmux -c "shell command" split-window but it does not seem to work. Using tmux split-window, one can split a new window. UPDATE: Using tmux split-window 'exec ping g.cn' can run the ...
1
vote
1answer
39 views

tmux blocks certain things on my Mac

I really like tmux and use it often so I set the following in my .zprofile: [[ $TERM != "screen" ]] && exec tmux so when I open a new window, tmux will be there for me. However, there are ...
0
votes
0answers
27 views

tmux session stops updating screen randomly

I use tmux 1.6-2 on a Debian 7.6 (wheezy). I open a new session and start a long running script that gives updates in form of a progress bar and an activity indicator (spinning bar: /-\|/ ). When ...
43
votes
12answers
27k views

Getting tmux to copy a buffer to the clipboard

I am trying to figure out a decent way to copy what I have in a tmux buffer into my clipboard. I have tried a couple of different things like bind-key p select-pane -t 2 \; split-window 'xsel -i ...
2
votes
1answer
599 views

Display current pane's current directory in status

Is there a way to update pwd in tmux status, instead of showing it in PS1? set -g status-left "#(pwd)" set -g status-interval 1 doesn't work.
1
vote
1answer
69 views

share existing tmux session

I have a tmux session already running. I have created it just with tmux now I can leave the session and re-enter with tmux a -t 0 how can I share this session with other users? Usually one has ...
31
votes
3answers
6k views

Renumbering windows in tmux

I frequently end up with more than ten windows in tmux. Later on, I close some of my older ones. Is there a way to renumber, say window 15, to window 3 (which doesn't exist anymore)? Or to pack them ...
3
votes
1answer
42 views

Reorder tmux windows

How can I efficiently reorder windows in tmux? For example, having this set of windows: 0:zsh 1:elinks 2:mutt 3:irssi 4:emacs 5:rss 6:htop What would I have to do to move rss to between ...
4
votes
1answer
2k views

tmux and Powerline: working configuration

Background I found very interesting the Powerline project. After several attempts, I managed to get it to work correctly for Vim. Then I did proceed with enabling it for tmux, by pasting the ...
37
votes
3answers
8k views

How do I equally balance tmux(1) split panes?

I'm looking for a behavior that is similar to how vim(1) handles its split windows with ^w =. I know tmux(1) has predefined layouts with ^b Meta[1-5], but this likely does not have the layout that I ...