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

0
votes
2answers
13 views

How to change the “niceness” (CPU priority) of a detached tmux session?

I made a very simple web crawler that echos output to the terminal. So I generally know how fast it's running. After I detach from tmux and check the MySQL table, it seems the script is running ...
0
votes
0answers
11 views

Quick jump to tmux session

Do you know if there is actually any way / plugin to be able to quickly jump to a session ? Currently I <leader>s to open the session-list page and then I select the one I want. And if I have ...
0
votes
1answer
60 views

How to execute a remote command to an existing ssh session

I'm trying to get basic informations on my local machine from ssh connections. The purpose here is to get the current user, hostname, current working directory in my tmux status bar. I've enabled ...
1
vote
0answers
17 views

How to use vim-slime from within a single tmux session?

I'm trying to integrate ipython and vim through a single tmux session using the popular vim plugin "vim-slime." The problem is that while I can get it to work fine provided that vim is opened in a ...
1
vote
1answer
24 views

bash show-all-if-ambiguous turns on spontaneously

I am using tmux and bash. I find that, at seemingly random intervals, my running shells have show-all-if-ambiguous set to on. This is a significant annoyance to me, since many of my operations are in ...
1
vote
1answer
18 views

Spawn another terminal running tmux (from a terminal running tmux)

I'm currently using urxvt with tmux, run as such: urxvt -e tmux I wish to start up a completely separate instance of urxvt -e tmux (another urxvt, also running tmux) using the terminal. (More ...
0
votes
2answers
32 views

How to set tmux terminfo to screen-256color? [duplicate]

If I do not use tmux my terminal is the following: ~$ echo $TERM xterm If I use tmux by adding the following into .bashr # tmux configuration tmux attach &> /dev/null if [[ ! $TERM =~ ...
1
vote
3answers
73 views

VIM solarized color scheme looks wrong when using tmux

I am trying to use the solarized color scheme in VIM using gnome terminal (Ubuntu). When I run vim without tmux, it looks great, see below: If I add the following commands to my .bashrc # tmux ...
0
votes
1answer
15 views

Auto opening my dev environment with byobu and tmux

When I launch byobu (I'm using tmux), I'd like to open 3 tabs/windows in byobu and launch these commands for each window: 1) cd ~/Dev/backend; vagrant up; vagrant ssh 2) cd ~/Dev/frontend; vagrant ...
1
vote
1answer
61 views

Systemd with rtorrent in tmux

I have been unable to get tmux & rtorrent running with a systemd service file. My rtorrent.service: [Unit] Description=rTorrent Documentation=https://github.com/rakshasa/rtorrent ...
0
votes
0answers
44 views

tmux status bar path customization with sed

On the server I connnect to my home path is like this:/home/junk1/junk2/user. I can use the sed command pwd | sed -e 's|^/\([[:alnum:]]*\)/[[:alpha:]]*/[[:alpha:]]*|/\1|' to shorten the directory path ...
0
votes
0answers
21 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 ...
0
votes
0answers
17 views

tmux sending strings instead of commands?

I want to send the key combination Ctrl+b, then : to tmux to access the tmux command prompt in the other session. However, when I use the command tmux send -t session C-b : it instead sends the ...
1
vote
1answer
54 views

Background color mismatch in vim and tmux

I'm having trouble getting the full range of colors to work in vim when I'm running through tmux. I belive that it's some sort of trouble with TERM variables or 256colors, but I've done everything I ...
4
votes
1answer
42 views

stty settings are pathologically altered

I just set up a new computer, and as usual had to alter the settings in xterm in order to make the delete keys work properly. (Ctrl-H sends ^H, backspace sends ^?, delete sends ^[[3~. This is, of ...
1
vote
1answer
19 views

How to have tmux on startup for both OSX and Ubuntu (including Quake)

I recently updated my Ubuntu 14 system and the update has made it impossible to have tmux started up automatically. In fact the previous setting made it impossible to log into my Ubuntu account(!), ...
4
votes
1answer
38 views

What does “mouse reporting” mean?

Today I saw a description on iterm2's doc about its tmux integration. It says: To adjust split panes, you have to enable mouse reporting, even if you don't want it otherwise. What does mouse ...
5
votes
1answer
62 views

Share a buffer between tmux / vim splits

+-------------+ | | | 1 | | | |=============| | | | 2 | | | +-------------+ Each tmux split has vim open. I would like to do ...
0
votes
0answers
12 views

tmux - how to use mouse to switch panel when using large (27") monitor?

I've used TMUX for a while and I like having the ability to switch panes with the mouse. For some strange reason mouse clicks, e.g. to switch panes. aren't working on the right hand 1/3 of the ...
2
votes
1answer
45 views

passing tmux variable into shell-command in tmux.conf

I'm trying to edit my bottom left status section of tmux. I would like it to show Session: #{session_name} The current maximum length for this string is set at 20 using this setting ...
0
votes
1answer
50 views

How to read bash config when working with SSH remote sessions [duplicate]

I have a Node.js app which I want to deploy on my VM machine. Before starting the app, I want to set few commands which should be read before the app is started. I placed those commands inside ...
0
votes
0answers
26 views

Is it able to redirect content of remote host clipboard to local clipboard?

When I doing :%y+ in a vim session on the remote host, I actually saved the content into remote host clipboard, right? Is there a way that I can redirect such content of :%y+ from remote host ...
10
votes
1answer
190 views

What terminal emulators support tmux control mode?

tmux has its control mode, activated with -CC, to allow the terminal emulator to control tmux. iTerm2 uses this to great effect for allowing tmux windows to appear as separate iTerm windows. Are ...
1
vote
1answer
43 views

Font/SSH interaction?

I use tmux, and tmuxline which uses the powerline fonts to look pretty. The problem is that when I ssh into a server, the font doesn't work. I installed the fonts as according to these ...
0
votes
0answers
14 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
1answer
28 views

Convert screen command for tmux

Is anyone familiar with how to run programs from crontab in tmux instead of a screen session? For instance what would be the command line equivalent of this: @reboot cd /home/morggin/mcserver ...
1
vote
1answer
24 views

Tmux stops responding to key bindings after xclip usage

I use Tmux version 1.9. To push tmux's clipboard to my X clipboard I have such a string in tmux.conf: bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" The problem is that after pressing ...
2
votes
2answers
48 views

Is there a way I can write a tmux plugin to select a single line?

The acme "editor" has this awesome feature where you can click on some output like foobar.foo:212 and acme opens that file at that line number. I'd love to add support for something like that into ...
1
vote
1answer
23 views

installing tmux on Ubuntu 8.04

Spending the weekend getting an inherited Ubuntu 8.04 in shape. Has to run for 2 more years (company internal, so security not really an issue). Trying to install tmux 1.9a from source (not in the ...
1
vote
2answers
85 views

Set Ctrl+Shift as prefix in tmux

I would want to have Ctrl+Shift as prefix in tmux (because I'm trying to switch from terminator, and the majority of my shortcuts used Ctrl+Shift). I tried this in my .tmux.conf : unbind-key C-b ...
1
vote
1answer
41 views

Why does tmux mess up my Ubuntu login, though it works ok once logged in for new windows?

Why, after a Ubuntu 14.04 software update, does have exec tmux in my .bashrc lead to not being able to log in (though previously it worked fine for years) and how to fix ? Investigation: I recently ...
0
votes
0answers
130 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
1answer
35 views

Tmux - Get number of panes in the current window in bash variable?

I'm scripting Tmux, and would like to know the number of panes in the current window from a bash script. Is there anyway to find out this information? in pseudo code, i'd like something like this: ...
0
votes
0answers
37 views

Attach tmux to pty after reptyr?

I've got reptyr to "open a new pty" by doing: reptyr -L 7969 where 7969 is the PID of rabbitmq-server. The output of reptyr is Opened a new pty: /dev/pts/25 but how do I attach tmux to that ...
3
votes
0answers
24 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\ ...
0
votes
1answer
109 views

Python script: wait until job in tmux session has completed

I am trying to continuously run a python script with random parameters from another python script, where each run is in its own tmux session. A very simplified overview of what I'm trying to do goes ...
1
vote
1answer
88 views

Gentoo how to auto-start programs at login?

How to start auto-start startx / tmux and other programs after login? I for ex: I want to auto-start tmux in root account and xorg with xfce in normal user.
1
vote
2answers
120 views

Tmux identify if pane is zoomed and active

I use tmux 1.8 so I have built in CTRL+b+z feature to zoom an active pane. The problem is that zoomed pane looks the same as just one plain pane so sometimes I forget if the pane was zoomed. Is there ...
0
votes
1answer
25 views

cating a binary in a tmux pane crashes the whole window

I have the same issue of the following question: tmux status-bar corrupted after catting a binary file, how to reset? and the bug that is mentioned in it does not exist any more. So my question here ...
0
votes
1answer
89 views

Compile static tmux with libutempter support

I'd like to fix issue for tmux when it can't report username via logname: logname: no login name I'm using steps below: # lets assume all other prerequisites are compiled already # and ...
2
votes
0answers
51 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 ...
0
votes
0answers
54 views

stop node server in tmux

I have a vagrant in which one I launch a node server on start. The node server is start in a tmux session but when I attach my tmux session and I do a ctrl + c the server is killed but the tmux ...
2
votes
0answers
42 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 ...
3
votes
1answer
28 views

Naming buffer exports dynamically in tmux

I've grown tired of trying to get tmux scollback working with iTerm2 and my keymapping of choice. Having realized that I can dump buffers into text files, I find that this is no longer necessary, or ...
1
vote
1answer
48 views

tmux: variables sharing between sessions

I've noticed that tmux will share variable between sessions. tmux will increment TMUX_PANE for new session as well. Is it possible to reset VAR for each session? Is it possible to start TMUX_PANE ...
2
votes
0answers
39 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 ...
1
vote
1answer
95 views

Every time I run tmux, new ssh-agent child process is started (zshell)

Every time I start tmux or split tmux, new instance of ssh-agent is started ("Agent pid XXXX" appears on the top), which is quite annoying because I have to type the key password every time I want to ...
1
vote
2answers
233 views

Why pressing Ctrl-h in xterm + tmux sends “^?”?

xterm: $ echo $TERM xterm-256color $ stty -a speed 38400 baud; rows 52; columns 91; line = 0; intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = ...
2
votes
1answer
65 views

How can I reset tmux's automatic session name numbering?

After accidentally holding down ctrl+alt+t, my tmux sessions are now automatically named with annoyingly high numbers: llama@llama:~$ tmux ls 124: 1 windows (created Mon Jan 5 16:45:55 2015) [80x24] ...
0
votes
1answer
101 views

tmux: rotate panes vertically or horizontally

Is there any way to get tmux to do the equivalent of Vim's window rotation (ctrl-w r and ctrl-R), where it rotates only in one direction? Tmux's normal window swap command ( ctrl-o) just rotates all ...