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
2answers
9 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
0answers
9 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
15 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
16 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
12 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
19 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
27 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
36 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
31 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
18 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
39 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
15 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
26 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
26 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
24 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
42 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
23 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
53 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
57 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
29 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
23 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 ...
1
vote
1answer
16 views

Is there a way to redefine the navigation keys for tmux copy mode?

When in tmux copy mode, I'd like to move the cursor with some Alt+key combos rather than the arrows. Is there a way to make tmux do this? Here are the definitions I'd like: Alt+i: up Alt+l: right ...
0
votes
0answers
17 views

capture tmux screen and process with shell command

is there a way to capture text currently on the screen of a tmux session and pipe it into a shell command then display the output? I was hoping to use something like this with Oracles sqlplus to do ...
2
votes
0answers
32 views

What are the benefits of using Tmux at all times? [closed]

I have been using the terminal for all of my local work, and have only been using tmux when I am ssh'd onto another machine and want to make sure I don't lose work if the connection closes. A software ...
1
vote
0answers
22 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
1answer
13 views

Automatically find position, from what last command started in tmux

It is common practice in tmux to start some command, then switch to copy mode, scroll to the position, where is this command started and look over the command output. It is difficult to find the ...
1
vote
1answer
19 views

Why tmux is changing my screen brightness?

With an empty .bashrc and .tmux.conf file, when I execute: tmux My screen brightness gets reset to the default (on a Dell XPS running Ubuntu 14.04.1). Tmux version's is 1.8. Interestingly, this ...
1
vote
0answers
25 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 ...
2
votes
2answers
84 views

Default tmux config

I've been trying some .tmux.conf files but now I'd like to go back to the original/default configuration. How can I do it? I've been looking for the default file but no luck.
1
vote
0answers
71 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 ...
3
votes
1answer
60 views

tmux ignores the configuration files

tmux ignores the configuration files: both /etc/tmux.conf and ~/.tmux.conf. Even I pass the path to the configuration file, using tmux -f path/to/tmux.conf it still doesn't load it. The configuration ...
0
votes
0answers
34 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 ...
-1
votes
1answer
116 views

exit tmux window without quitting the Terminal program

OK I'm new to this. I installed tmux to run a several days experiment. After typing tmux new -s name I got a new window with green banner at the bottom. I compile and run java program. Now I do not ...
4
votes
2answers
49 views

SSH password requested when in Tmux

When I connect to my remote machine I do authenticate using a rsa key (I think is rsa, don't remember). If I do ssh from a regular shell I get logged on the machine without a password. However if I ...
1
vote
2answers
50 views

gnome-terminal : small gap at right side of screen (Ubuntu)

I use gnome-terminal on Ubuntu, and when the window is small (not maximized or fullscreen), my tmux statusline and the ZSH right prompt both stretch to the extreme right of the window, which is ...
9
votes
2answers
275 views

tmux session killed when disconnecting from ssh

Summary: I'm trying to figure out why my tmux session dies when I disconnect from ssh Details: I have tmux installed on an Arch Linux system. When I start a tmux session I can detach from it and ...
1
vote
1answer
41 views

Why is my second tmux session not shown in ps aux or htop but in tmux list-sessions it is?

I start two new tmux sessions, the session name is variably build from a timestamp. (the commands create a new, detached tmux session, which first changes the directory, lists the content and then ...
0
votes
0answers
130 views

nohup, screen and tmux not working when closing connection on yocto linux (intel edison)

I have an Intel Edison with Yocto Linux and standard configurations. It had nohup pre-installed and I managed to install both screen and tmux (by compiling them from sources). Now, I would like to run ...
0
votes
0answers
13 views

Directly start an application in a new screen/tmux session [duplicate]

Is there a way to start a new screen or tmux session, which directly executes a given command/application then detaches again? In pseudo-code something like tmux new -s ft_session --execute python ...
1
vote
1answer
22 views

Why are my windows highlighted when I first open tmux?

Sometimes after having been away from my computer for a while, when I open tmux all the windows in a session have sort of a background highlight: Once I cycle through them, it disappears, and only ...
1
vote
2answers
40 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. ...
2
votes
2answers
257 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 ...
1
vote
0answers
38 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 ...
4
votes
1answer
264 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 ...
1
vote
0answers
86 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
76 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
30 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 ...
1
vote
0answers
41 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 ...
0
votes
0answers
189 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 ...
3
votes
1answer
445 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 ...