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

5
votes
0answers
142 views

Problem using Ctrl+Arrow keys in Vim when using Byobu with tmux

In Vim, I had set the Ctrl+Arrow keys to skip words. This works just fine when running Vim inside the gnome-terminal. However, when using byobu (tmux), it shows weird behavior : it deletes ...
5
votes
0answers
813 views

Have tmux wait until I SSH in, to complete rest of Tmuxinator script

After recently discovering tmux and Tmuxinator, I've been trying to set up a development environment to use. Per protocol, we aren't allowed to store passwords/passphrases in scripts. So what I'm ...
5
votes
0answers
2k views

Bad utf8 display with tmux

When I press the "é" key multiple times on my keyboard, here is what tmux print (notice the spaces) : arcanis@~ > é é é é é é é é é é é é é It also broke emacs when the file contains utf8 ...
4
votes
0answers
240 views

xinitrc: starting xterm with tmux causes all windows to share same geometry

I have xterm with tmux open upon startup of X11 with the following line in my xinitrc file: xterm -e tmux & However the -e tmux causes all windows to assume the geometry of the first -geometry ...
3
votes
0answers
48 views

Bind ALT key in Tmux to move across panes

I'm using Ubuntu 14.04 and I would like to bind ALT + <hjkl> in tmux to move across splits. I've seen this plugin that allows you to move across panes with CTRL + <hjkl> but I would like ...
3
votes
0answers
161 views

tmux causing bold fonts in vim

I have installed tmux with vim, using the solarized colorscheme and airline plugin. All is good until I start tmux, where all the font turns bold and the airline status bar is looking weird. I have ...
3
votes
0answers
95 views

Monitor exit code in tmux

Is there a way to update tmux window attributes based on command exit status? Similar to activity monitoring, I would like the title to change color when a command exits, say, green for success and ...
3
votes
0answers
218 views

tmux option `xterm-keys` does not enable control+arrows

I cannot make tmux recognize Ctrl-◄ sequence differently from just a left arrow, and the same for the right arrow too. In my ~/.inputrc, I have mapped these sequences (as issued by 2 different ...
3
votes
0answers
32 views

tmux blocks for certain commands

I am trying to understand why this program behaves differently depending on Y: #!/bin/bash rm -f /tmp/par21d9I.tmx mkfifo /tmp/par21d9I.tmx; tmux new-session -d true\ ...
3
votes
0answers
248 views

Is there a more elegant way to unlink two tmux clients sharing a session from inside tmux?

This is almost a code-review question, but very *nixy and more about configuration than code. For years since I switched to tmux from screen I've had a couple of nagging issues that I could not make ...
3
votes
0answers
200 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 ...
3
votes
0answers
3k views

Reset background to transparent with tmux?

I recently set up tmux-powerline and noticed that the background color on the status-left, if changed, refuses to go back to default and transparent (if transparency is enabled). I was able to fix ...
2
votes
0answers
46 views

Detach from tmux and rotate to ssh without dropping exec?

I've been using tmux launched by default as part of my shell at all times for some time now and find it very convenient. At the same time ssh'ing from inside tmux to another system is not ideal ...
2
votes
0answers
40 views

Jump to last prompt in terminal (or tmux)

In a terminal, are there any shortcuts to jump to a previous/next prompt? Scrolling up and trying to find the start of a log slows down my workflow. I'm using iTerm on OSX, but this should be ...
2
votes
0answers
38 views

Is it possible to style tmux on a per-session basis?

I set up 2 tmux sessions to work on different parts of a project (switching back and forth frequently). As their layout are pretty similar, I would like to set different status-bar color to help me ...
2
votes
0answers
38 views

Is it possible to share the tmux buffer across sessions?

I typically have 2-3 tmux sessions running on my server, and almost always have 2 up at a time, 1 on each monitor. Occasionally I want to take something I copied from one session and paste it into ...
2
votes
0answers
108 views

Chaining tmux configuration commands using the “run” command

In a previous question, I asked how to export dynamically-named buffers from tmux. The accepted answer worked perfectly. Having implemented this solution, I attempted to extend it to provide some ...
2
votes
0answers
79 views

Forwarding C-c to a remote tmux session

I have bind C-c new-window (and other similar bindings, but only C-c is giving me an issue) in my .tmux.conf. On a local tmux session, the binding works as expected, but in a remote tmux session(over ...
2
votes
0answers
240 views

Tmux hangs on first start

I am running Tmux on a OSX (brewed tmux), and everytime I boot my computer, the first time I start tmux, it hangs. Doing a CTRL + T to check it's SIGINFO, gives me "waiting..". To fix this, I need to ...
2
votes
0answers
233 views

Is it possible to run fbi inside tmux if the tmux if running in a virtual tty?

I have already looked at this question and the solution works insofar as I can get an image displayed in my virtual console. However, if I first launch a tmux inside the virtual console, and then try ...
2
votes
0answers
170 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 ...
2
votes
0answers
281 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 ...
2
votes
0answers
315 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
0answers
39 views

Bash command history stops working after starting new tmux session

My bash command history stops working after starting a new tmux session. No previous commands when typing up, down, reverse search, no output from running history. I've confirmed that this happens ...
1
vote
0answers
129 views

tmux not executing ~/.bash_profile on start up

I searched the net and many people complained that tmux wasn't executing their .bashrc. The solution thats suggested everywhere was to source .bashrc from within .bash_profile cos tmux launches bash ...
1
vote
0answers
19 views

tmux status bar rightmost few chars disappear

From time to time I saw my status bar rightmost few chars disappear. For instance, the intended one 11:40 to be 11:4 My .tmux.conf is as the following: # Set status bar set -g status-bg black ...
1
vote
0answers
62 views

tmux - Catch 22 with “unknown key: WheelUpPane” for osx and Ubuntu

Recently tmux changed a lot of mouse stuff for the better. I've got a bit stuck however because I need to have bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= ...
1
vote
0answers
15 views

Tmux: Unzoom pane when switching to another pane

In tmux, prefix + z toggles the active pane between zoomed / unzoomed. Also, the tmux-pain-control plugin allows moving to another pane (same window) with prefix + i/j/k/l. Now, when from a zoomed ...
1
vote
0answers
15 views

Makikng Alt + h switch to the left pane in tmux

I'm trying to make Alt-h switch to the left pane in tmux. The following does not work: bind -n M-h select-pane -L Pressing Alt-h in cat generates the following in my terminal: $ cat ^[h That is, ...
1
vote
0answers
24 views

Getting Alt to Work in the Terminal with Tmux and Vim

I'm trying to make Alt + h/j/k/l switch tmux panes and vim windows. Yet for some reason my terminal (xfce4-terminal) and and Alt do not play nicely with each other. I got Alt + h/j/k/l to switch ...
1
vote
0answers
45 views

Running screen inside tmux

I need to run an instance of screen inside tmux because there's a script I need to run that uses a complex .screenrc to run several commands in parallel and monitor them. This works on some of my ...
1
vote
0answers
39 views

tmux status-bar #(pwd) doesn't reload

I have a problem with tmux 2.1 status bar. As the man explain I'd write in ~/.tmux.conf it: set -g status-right "#(/bin/pwd) %R %d/%m/%g" set -g status-interval 1 so, after I start tmux in status ...
1
vote
0answers
17 views

Fullscreen TMUX session 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. ...
1
vote
0answers
29 views

tmux start process if not already running

In my .zshrc, I have a bit of logic that will automatically start a tmux session or, if sessions are already running, prompt to attach to one of them or create a new one and attach to that. This all ...
1
vote
0answers
63 views

Copy text in byobu when the mouse is “off”

I recently started using byobu with tmux as a backend. I have learned that AltF12 toggles "mouse mode" off and on. When "mouse mode" is on, I can select text with my mouse and paste it with the middle ...
1
vote
0answers
45 views

Vim losing ability to copy to client clipoard over SSH

I have setup vim to be able to yank text from the server instance of vim to the clipboard on My client's operating system (through the SSH connection). The basic setup is Client side ...
1
vote
0answers
9 views

How to see the variables current value of a running matlab process on tmux?

I have a matlab process in tmux which is running for days. Actually I need to see the values of calculated variables till now. I thought that, it is good(if possible) to duplicate the process and then ...
1
vote
0answers
24 views

Unbind c-n and c-p from tmux

I want to totally unbind the next-window and previous-window command from tmux, here is what I have in my tmux conf unbind C-n unbind n unbind C-p unbind p It works well on ubuntu, but on Mac it ...
1
vote
0answers
64 views

Why is tmux opening a new terminal window?

When I start tmux in my i3 / termite / zsh environment the default pane with the zsh prompt inside it is launched in a seperate window instead of the window in which I started tmux. Additionally I ...
1
vote
0answers
46 views

How to use Ctrl+mouse click in tmux?

Due to the change in Tmux2.1, I need to remap my mouse's middle click to tmux's paste: bind -T root MouseDown2Pane run -b "tmux paste-buffer" However, I also would like to enable using Ctrl (or ...
1
vote
0answers
50 views

How can I use color output in a tmux run-shell command?

I've bound a key to run a script with tmux's run-shell command, but I can't find any way to use color output. normal ansi codes do not work, e.g. echo -e "\e[32mblah blah\e[0m" tmux formatting does ...
1
vote
0answers
23 views

How can I prevent tmux from blocking when I scroll up?

tmux is awesome, but I'm often in situations where scrolling up causes (admittedly minor but still undesirable) problems. For instance, I have a node.js server running in one window, and BrowserSync ...
1
vote
0answers
15 views

How do I terminate Aptitude safely

I have a TMux session with Aptitude open. The Aptitude process has been "killed" several times with STOP/CONT. Now it doesn't react to the Q key. Instead a 'q' is printed on the top-left corner of the ...
1
vote
0answers
136 views

Binding mouse buttons in tmux

Has anyone managed to bind mouse buttons to custom functions in tmux? According to the manual this should work: bind-key -n MouseDown2Pane paste-buffer This should let me take text that was ...
1
vote
0answers
58 views

tmux select-pane -LDUR command - disable auto-cycling behavior

Is it possible to disable the behavior which causes selecting a pane on opposite side of a tmux window if there are no more panes left in a direction select-pane command was originally triggered at? ...
1
vote
0answers
93 views

Can multiple users issue commands simultaneously using tmate with seperate cursors in the same session?

I've just installed tmate and tmate-slave on a VM and am wondering if when more than one user is part of the session, can tmate allow both users to work in synchronous mode, meaning each has their own ...
1
vote
0answers
41 views

tmux command to move pane to edge of window?

In Vim, you can move a window to an edge of the viewport with H/J/K/L. Vim will make sure the window occupies the whole edge and resize/shift the other windows around it. Is there something similar ...
1
vote
0answers
388 views

tmux / screen ctrl+arrow (left right) doesn't work on SSH

I've configured tmux to skip words on Ctrl+right / left : set-window-option -g xterm-keys on It works just fine, but as I do SSH, it doesn't work and prints ;5D or ;5C.. The same issue occurred ...
1
vote
0answers
83 views

Mosh and terminal multiplexing

Reading this Q&A on the site: Can I re-attach to a mosh session? made me wonder about the use cases for mosh. Say I start tmux on my local client, and then mosh to a remote host from within ...
1
vote
0answers
47 views

Output Tmux Output to the Terminal

I'm using supervisor to monitor keep a process alive, but I do need to have contact with that process every now and then to provide user input. I would normally use tmux for this, but when I use ...