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

3
votes
2answers
156 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
156 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
241 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
111 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 ...
4
votes
2answers
2k 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
127 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
81 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
269 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
104 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
23 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
193 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
78 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 ...
1
vote
0answers
98 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
57 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
122 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 ...
3
votes
1answer
246 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
86 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
129 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
115 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
636 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
131 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
1answer
1k 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
2answers
188 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
112 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
195 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
586 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
140 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
94 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
51 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 ...
0
votes
2answers
279 views

How to kill tmux window automatically when terminal window closed?

I am new to tmux. I am starting a process in a tmux window in a terminal window. When I close the terminal window, the process not killing automatically but If I kill tmux window before close ...
3
votes
1answer
840 views

Uptime showing in tmux status bar

I want to show the uptime in the tmux status bar in this format DD:HH:MM without any of the other cruft that the uptime command shows. I've tried #set -g status-left '#[fg=green]#H ...
2
votes
0answers
153 views

GNU screen, tmux, dvtm - none work as ordinary user

I bought cheapest vps for teamspeak hosting and I have strange issues with demonizing it's process. None of screen tmux and dvtm work for ordinary user, but they work witout a charm for root. As far ...
1
vote
1answer
334 views

How can I scroll screen or tmux buffer without pausing the application?

I want to have the same behavior as C-A/C-B+[ provides except i want to be able to return to my application to see that it has progressed in her calculations or has not disconnected to the server ...
5
votes
1answer
215 views

Linux VT Emacs in tmux, breaks color and cursor

TERM is set to screen. I tried with screen-256color, but then the colors went really nuts. I also tried xterm, linux, and some others (that I could think of, not really thinking) but screen is the ...
0
votes
1answer
480 views

Tmux ranger integration: opening text files in new panes

Here we have some amazing tools: tmux, ranger, vim... Would be amazing to configure ranger to open the files (when text editable) in a tmux newpane? Is that easy and how it is done?
1
vote
1answer
92 views

how to end tmux sequence after switching panes

In tmux, when having separate panes open, I do Ctrl-B ↑ to switch to the pane above. Great. Except that if the next key I want to press is also an arrow key (e.g. I want to go to the bash prompt above ...
2
votes
1answer
46 views

How can I bind my ctrl+b so that I don't need to press it to resize my pane?

I managed to be able to resize panes in tmux thanks to this answer. But now I press CTRL-b and then e each time I want to resize the pane (e.g. make larger to the left). How could I bind the CTRL-b as ...
2
votes
1answer
243 views

vim and tmux are conflicting. How can I fix this? [duplicate]

I'm having a painful experience with tmux. I'm using solarized in vim but when I run tmux then my vim configuration does not work. It's as if solarized is not configured in my .vimrc. Out of tmux ...
2
votes
1answer
1k views

How can I create a shortcut to resize panes in a tmux window?

I am having lots of issues with tmux in mac. Another problem I have is that I can not bind a key in my tmux.conf to be able to resize my panes. What I need is the CTRL-b: resize-pane -U 10 I currently ...
3
votes
4answers
1k views

is there an alternative to tail -f that has convenient scrolling? [duplicate]

I'm usually inside GNU Screen or tmux, which doesn't give me excellent scrolling functionality. Is there an alternative to tail -f that allows me to quickly scroll up? A tool that is like most is to ...
9
votes
6answers
10k views

How can I page up or down in tmux with Terminal.app?

I have tmux installed. But I can not scroll up or down. I.e. as soon as I tmux I get only a portion of the screen and can not scroll up. crtl-b + Page Up does not work since I am in Mac and I can not ...
2
votes
0answers
130 views

Simulating GNU Screen's shelltitle in tmux

I'm trying to simulate GNU Screen's shelltitle feature in tmux. I have the following in my ~/.bashrc: if [[ "$TERM" == screen* ]]; then SCREEN_ESC='\[\ek\e\\\]' else SCREEN_ESC='' fi ...
1
vote
1answer
516 views

Resume bash session in new TMUX or SCREEN? [duplicate]

Sometimes I'll start doing something fast. I've got something to do, and I need to get it done now. Then of course i realize that I need to do something else to help me finish what I started, so I ...
0
votes
1answer
142 views

TMUX under Gentoo TTY artifacts

Problem: Tmux.conf (included below) generates a statusbar... with a light gray background (the config says '#000000', so black). This background ends up replacing what would normally be the normal ...
4
votes
3answers
2k views

How do I run a shell command from .tmux.conf

How do I run a shell command from .tmux.conf, or otherwise automatically when tmux launches, without having to hit any other command? How can I create an alias, a function, or a script which boils ...
3
votes
3answers
895 views

How to make my tmux which starts via crontab @reboot use bash?

I have a crontab which launches tmux-launching-script as follows : -sh-3.00# crontab -l @reboot /root/scripts/tmux_autostart.sh where #!/bin/bash # setup tmux session tmux new -d -s my_session ...
0
votes
1answer
115 views

How to start tmux so that it won't get killed on exit in last windows? [duplicate]

I want to start tmux so that it won't quit when last pane/window is killed. As for now I do it this way : tmux new -d -s my_session_name I can add a windows name as such: tmux new -d -s ...
7
votes
1answer
425 views

How can I make tmux monitor a window for inactivity?

I've switched from GNU Screen to tmux. They're both similar, except that tmux is still maintained. GNU Screen has a C-a _ ("silence") command. This command makes GNU Screen monitor the current ...
5
votes
4answers
1k views

Tmux xclip copy no longer working

On mu ubuntu 12.04 setups my tmux clipboard copy and paste commands are setup as follows: set -g prefix M-a unbind C-b bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" bind C-v run "tmux ...
0
votes
1answer
424 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 ...