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

1
vote
0answers
66 views

tmux disable automatic-rename on break pane

If I setw automatic-rename off on two windows, then join them, when I detach either one tmux automatically renames it! And "show-window-options" now has no record of the "automatic-rename off". How ...
1
vote
1answer
116 views

How to see the amount of pending data on a unix domain socket?

When I'm logged to a tmux session from two different computers, I'd like to be able to trace the amount of pending data on the sockets of both tmux session. To test this I logged to computer A and to ...
0
votes
1answer
524 views

Tmux key-bind like to use the windows/super for my meta key in Tmux Without X [duplicate]

I have RaspberryPI with no GUI==(no x.org) I like to bind the useless window/super key to be my prefix. Using Arch for ARM runs great. If think this is going to take more then simple mod in the ...
2
votes
1answer
81 views

Can I apply `tmux` to a bash script?

Is it possible for me to use tmux to SSH into a Raspberry Pi, run a Bash script, and then leave the session (from my laptop), while the Raspberry Pi continues to run the script?
1
vote
5answers
546 views

Is there a way to make a Bash script enter a certain keystroke?

Is there any way to make a bash script enter a certain keystroke? What I'm trying to accomplish here is a script that will run Ctrl+B to exit tmux. EDIT: I see that several people are saying that ...
2
votes
1answer
341 views

Byobu - send command to byobu tmux session from commandline (or bash/sh)

I run a script which I would like to print the status to a byobu tmux session. So for example print backup finished \n. Is it possible to do this with the name of the byobu tmux window, which you can ...
2
votes
3answers
294 views

How do I know the name of a tmux session?

Recently, I started using tmux, I find it nice but still having issues to understand this application. One of the basic questions I have is: How do I know (command from cli) what is the name of the ...
0
votes
1answer
248 views

How do I find out the keycodes for Ctrl+up and down arrow for TERM=screen?

I am using tmux a lot, and I have already managed to tune my OS X terminal to send the correct key codes for Ctrl+left and right arrow (\033b and \033f). I found those information on the web. However, ...
2
votes
2answers
611 views

copy from tmux to any editor not working

I am trying to copy from tmux to my browser. I followed the post Copying between tmux buffers and the system clipboard which tells me to add setw -g mode-keys vi bind-key -t vi-copy 'v' ...
6
votes
1answer
1k views

tmux copy mode search highlight

Is there any way to highlight the searched term in tmux copy mode? Below is my tmux config: # remap prefix to Control + a set -g prefix C-a unbind C-b bind C-a send-prefix bind a send-prefix # ...
1
vote
1answer
36 views

tmux.conf: Prefix depends on whether session is remote

I'm trying to run tmux sessions inside and outside of a remote ssh session, so I want to use c-b prefix for the outer (local) session and c-a prefix inner (remote) session. My question is how can it ...
2
votes
1answer
601 views

Re-set $TMUX after unsetting

I did the following to try and get Byobu to work (see http://stackoverflow.com/questions/19099018/byobu-error-sessions-should-be-nested-with-care-unset-tmux-to-force ) on a Ubuntu server droplet I ...
1
vote
0answers
13 views

Multiple bindings for the same action [duplicate]

Like many screen users I'm used to Ctrla, so on my machine I changed the binding to Ctrla, however, I wish to keep Ctrlb since on some machines it's the default and when sharing work with other people ...
1
vote
1answer
33 views

How can I make C-j send a newline in the tmux command line?

I have grown fond of using C-j instead of <ENTER> to send newlines. Unfortunately, in the tmux command line (invoked with prefix-: by default), C-j does not do anything, even with set -gw ...
2
votes
1answer
185 views

mirroring a pane between two windows

Is it possible to have the same pane appear in two different windows of a single tmux session? I typically have a single horizontal split in my main window with vim in the top pane (about 80-90% of ...
0
votes
2answers
172 views

Why do you need screen/tmux to keep a remote program running

When I ssh to a server and start a script that is supposed to run for several days, it stops executing some time after I log off. Why? I suppose the server runs 24/7. And what does screen/tmux do to ...
2
votes
1answer
171 views

Send keystrokes to a process on Console

If I have a terminal with a shell open, how can I write a shell script (any scripting language is ok with me!) that will send a keystroke to any one of the running processes? As an example, how could ...
1
vote
1answer
44 views

Vim Window in Tmux

In Tmux, how do I assign a particular program to a particular window, so that all calls to that program from a shell in another window in Tmux will go to that program? One example would be a window ...
3
votes
4answers
6k views

How to start tmux with attach if a session exists

If I use tmux attach I can attach to a running session but if there is no session running, I only get the error no sessions How can I automatically start a new session if there is none running? ...
4
votes
1answer
54 views

tmux: Keep scroll position when changing session

Sometimes I'm scrolling up a log file and need to switch sessions, so open the session menu with prefix-s. This causes tmux to forget the window's scroll position, so that when I return it's at the ...
2
votes
1answer
122 views

Capture colors with tmux buffer copy (hardcopy)

I am using the following line in tmux for getting a "hardcopy" feature like in GNU Screen: bind H capture-pane \; save-buffer -b 0 ~/tmux.hardcopy \; delete-buffer -b 0 However, the ANSI colors are ...
4
votes
2answers
178 views

Can I make a tmux pane “sticky”?

Is it possible to make one or more tmux panes "sticky"? I.e. these panes will appear in all windows which are currently available in my tmux session?
2
votes
1answer
191 views

Garbled text in tmux menus

I am trying to use the st terminal, but after starting tmux (or screen) in a remote ssh session, the text becomes all garbled. Exiting tmux/screen makes text normal again. Now, I have found that this ...
3
votes
2answers
285 views

How to detect if tmux is attached?

I have a Irssi running within a tmux session, and am working on writing a Irssi script (extension) to send me an email when someone PMs or mentions me when I'm not attached to the tmux session. ...
1
vote
0answers
148 views

How can I bind Ctrl-Alt-[0-9] in Tmux?

I am able to bind Ctrl-Alt-[a-z] using M-C-a, M-C-b etc. However, when I attempt to bind Ctrl-Alt and a number key I get: .tmux.conf: 45: unknown key: M-C-0 Any idea why? I'm running tmux ver 1.7 ...
7
votes
2answers
3k views

New Tmux Panes go to the same directory as the current pane; new tmux windows go to home directory?

Can anyone help me set up this configuration? If I create a new pane, the new pane should start out in the same working directory as the pane I was just in. If I create a new window, the new window ...
2
votes
0answers
139 views

Let remote ssh session know about tmux?

Assume I run a tmux session on machine A and from it I start an interactive shell via ssh to machine B. I'd like to change machine B's PS1 to better suit the use from under tmux; for instance, I'd ...
0
votes
1answer
97 views

Split tmux windows with same keys as in Emacs?

In emacs, you split a window with C-x 2 (one above the other) or C-x 3 (one next to the other). How can I get the same key bindings in tmux? Also, once a window is split, in emacs you cycle through ...
3
votes
1answer
349 views

tmux consuming 100% of cpu

I've been running byobu for a while now, and in the last few hours it has started to consume 30-100% of the CPU on the core it's running on. This a noticeable delay when entering text, or switching ...
1
vote
1answer
132 views

In Centos, where is the default or global tmux configuration files stored?

I haven't used tmux in awhile and I forgot where is this installed. how can I find out where this is installed and which default / global configuration file is being loaded?
1
vote
0answers
24 views

How to prevent tmux from reading .profile/.zprofile/.bash_profile [duplicate]

The original question Is it possible to override tmux's default behaviour of executing .[z|bash_]profile files on every new session, window and pane? In other words, I'd like it to only execute ...
4
votes
1answer
265 views

Using Ctrl+[0-9] to cycle between windows using tmux

I have started using tmux but I feel that using Ctrlb0-9 is very annoying, because it's used so often. How do I bind the keyboard so I only need to do Ctrl0-9 for changing windows (like in Chrome)? ...
3
votes
1answer
82 views

Make tmux tabs arrange more like traditional tabs

Tmux is a great piece of software, which almost replaced me my terminal "terminator", especially with it's <bindkey>-z in recent versions. The main annoyance I have with tmux is that whenever I ...
2
votes
1answer
126 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 ...
2
votes
1answer
60 views

How do I drop to a shell after exiting a command I started by scripting tmux?

I'm following this tutorial for scripting the creation of tmux windows. tmux new-window t $SESSION:0 -k -n MAIN 'cd ~/main/ && perl -Ilib myapp' sometimes I kill myapp after I've started ...
3
votes
0answers
136 views

“Overlay” a shell prompt on top of a terminal session? [closed]

I have several CLI application ideas that would be nice to run as an "overlay" on top of my terminal session. In other words I would like to superimpose a box containing a real live shell prompt on ...
4
votes
1answer
285 views

Tmux: equivalent command to screen -d -m -S session_name

I'm looking at replacing screen with tmux, currently I use this screen command: screen -d -m -S session_name /root/script Is there an equivalent command for tmux that will do the same thing?
2
votes
1answer
102 views

tmux “last-session” binding

How could I bind to last (most recent) session? The obvious last-session leads to an "unknown command" error. bind-key z last-session
1
vote
0answers
139 views

Tmux hidden input at command line

I've just started using tmux recently, and have run into this problem a few times. Whatever I type on the command line, is hidden from view until I press enter and it is executed. I don't know how I ...
1
vote
0answers
137 views

GNU screen :fit equivalent in tmux

I'm experiencing this problem where I've attached a single tmux session at multiple terminals with differing console sizes. Is there a solution to rid of the view-port without having to disconnect ...
1
vote
1answer
733 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 ...
3
votes
2answers
146 views

Vim alerts after a few seconds when no event occurred

I use Vim in a tmux session, and recently I've noticed that Vim is raising an alert after a few seconds when I switch to another tmux window. Nothing has happened in Vim after I move windows - usually ...
1
vote
3answers
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+ ...
2
votes
2answers
272 views

Is there an easy way to “restart” a tmux pane?

Assume I have a tmux (1.7) window split as follows: ________________________ | 1 | | | |-----------+------------| | 2 | 3 | ...
2
votes
0answers
118 views

Tmux is not able to distinguish between insert and shift-insert

Insert when in xterm, gives ^[[2~ and, Shift+Insert gives ^[[2;1~ All this is good until I start tmux. Note that the $TERM variable remains the same, so this issue should not be related to ...
2
votes
2answers
217 views

Why does Bash readline sometimes try to parse the second word of a command out of context?

I recently migrated all my dotfiles and setting to a new laptop running Ubuntu 13.04, and have been noticing a strange behavior that I've never seen before. Essentially, it seems like my terminal is ...
2
votes
3answers
976 views

Attach to tmux session and run a command

How I can run a command in Tmux when I'm attaching to a session ? I want attach and immediately run a command. I read the docs, but found only send keys, which not suits my needs.
3
votes
2answers
149 views

How to make .bashrc call dependant on tmux program being installed?

I have a section in my .bashrc that fires up the tmux program (terminal multiplexor). However if the tmux program isn't installed (say I'm setting up a new computer) then having this in my .bashrc ...
2
votes
0answers
99 views

Moving the mouse over a terminal window generates escape sequences [closed]

When using tmux over a ssh connection, if I launch a program to keep open, I run into troubles when I move my mouse inside the tmux window: ...
2
votes
1answer
56 views

Send variable through tmux binding

I'm trying to setup a tmux (1.9) key-binding to swap to windows. Unfortunately, I can't seem to figure out a way to send a variable for the swap. For example, if you hit C-b . It will then prompt ...