tmux is a terminal multiplexer, which allows users to work with terminals in terms of windows and panes, which can be created, destroyed, attached, and reattached at will.

learn more… | top users | synonyms

3
votes
1answer
320 views

tmux - how-to enable automatic switching from 80 to 132 columns and back

Currently in our terminal based accounting system, clients mostly use putty (0.61) and when a report is viewed in the terminal, an escape code is issued that kicks the screen from 80 to 132 columns if ...
0
votes
2answers
16 views

Can I fix a broken tmux session?

When my tmux session gets messed up, e.g., after I accidentally cat a binary file, is there a way to fix it? reset doesn't help much when I'm inside of a tmux session.
0
votes
0answers
17 views

tmux disregarding the configuration file even when no sessions exist

This question is similar to this question, but in this case running "killall tmux" or "tmux kill-server" is not effective. Running "tmux list-sessions" returns "failed to connect to server". Running ...
1
vote
2answers
13 views

Creating a “kill current session” shortcut in Tmux

Is it possible to create a shortcut in Tmux which would kill current session? Typing "kill-session -t mysession" is not very convenient I imagine something like bind X kill-session -t ...
0
votes
1answer
19 views

Configuring function keys in PuTTY for both Vim and Midnight Commander under tmux?

First off, I'm aware that I can use Alt+1 (through 9 and 0) to synthesize the respective function keys (F1 through F10) in Midnight Commander. It has helped me many times, but by default I still press ...
2
votes
0answers
40 views

Bug with resizing panes in tmux when using ZSH

I am using Tmux with ZSH and have a problem when trying to resize panels. I am currently using these bindings to resize panels as I work: unbind-key M-j ; bind-key -n M-j resize-pane -D 1 ...
2
votes
1answer
150 views

How can I tell what command is running on the remote end of an ssh connection?

Tl;dr - how do I find the name of the command (eg $BASH_COMMAND) running on the remote end of an ssh connection? ... My example setup is two tmux vertical panes, LH pane runs a local vim session ...
5
votes
2answers
2k views

Where's the default tmux configuration file?

I'm looking for the default .tmux.conf or something like it. I'm trying to get rid of some noise in the status line that the default creates.
0
votes
0answers
21 views

In mc within tmux ctrl-o doesn't work

When I run mc within tmux: $ tmux $ mc 'Ctrl-o' in mc desn't work properly: mc panes disappear, but the shell command prompt doesn't appear, and pressing any key causes mc panes appear again. When ...
19
votes
5answers
24k views

How do I get tmux to open up a set of panes without manually entering them?

So, I want to make a project-specific tmux session that pops up certain commands in certain panes automagically. Following an online tutorial and the tmux man page, this is what I come up with for a ...
0
votes
1answer
17 views

In tmux, is there something similar to `monitor-activity` but for a single pane?

I use bind m setw monitor-activity so that I can easily toggle whether or not I want visual updates about when a window has updated. However, sometimes I'll have a window with panes which have updates ...
0
votes
2answers
84 views

Attach a tmux session to a remote machine

I am using tmux on my local machine and usually have several sessions simultaneously. What I usually do is I have a session with different windows to work locally and the other sessions in which I ...
1
vote
1answer
63 views

Some shift+arrows not working in tmux?

I am attempting customize tmux so that Ctrl-Arrows are used for pane selection Shift-Arrows are used for pane resizing Alt-Arrows (left, right) are used for window selection ... all are working ...
1
vote
1answer
18 views

tmux - get pwd of another pane in a bash script?

Is there anyway to find out information about the current working directory of any pane from within a tmux session? I'd like to write a bash script that changes the directory of the current pane to ...
0
votes
0answers
43 views

How to make Vim and TMux keys coexist?

I am configuring vim and tmux. I configured the tab navigation in vim like this: map <M-Left> <Esc>:tabprev<CR> map <M-Right> <Esc>:tabnext<CR> map <C-T> ...
7
votes
4answers
3k views

Why are random letters inserted in my tmux session?

Sometimes when I use the mouse, or press and hold a movement key in tmux, random characters are inserted. For example, when I press the left movement key D is often inserted. A left mouse click often ...
0
votes
1answer
15 views

TMUX window names disappear after one command

I'm running TMUX on OSX Yosemite. I can name the windows without any issues, but when ever I make a new command (anything, even just enter) it switches back to the "directory" as the window name. Why ...
0
votes
2answers
202 views

Any way to share a once-off ssh session like TeamViewer/VNC without creating a user?

Hi, I would like to trial some dev ops/sysads/db admins but I don't want to give them the keys to the kingdom until they've proven their skillz. I'd like something analgous to TeamViewer in the ...
14
votes
1answer
3k views

Function key shortcuts in PuTTY/MinTTY and Tmux/Byobu

As a long-time lurker on Stack Exchange, I've found answers to most of my problems without needing to so much as make an account. But today I'm completely stumped with this issue, so I'm reaching out ...
2
votes
2answers
401 views

Clicking far away in vim in tmux in urxvt

I use vim inside tmux inside urxvt, and the mouse works perfectly well for clicking and selecting text, except when I want to click too far to the right. It seems to be related to the distance in ...
1
vote
2answers
65 views

Why do I see the unicode character è when I type Alt-h in my xterm on CentOS?

I am sshing into a centos box from an ubuntu box. I keep seeing è when I type alt+h (aka M-h). I want to use this key combo in tmux bindings but it doesn’t work because tmux doesn't recognize utf8 ...
4
votes
2answers
98 views

tmux visual indication if panes are synchronized

Is it possible for tmux to have some visual indicator if synchronized-panes is enabled for the window? Perhaps the status bar changes to blue, or just a star appears somewhere? I often set ...
2
votes
0answers
124 views

Mouse click only works once with iterm2/tmux/mosh

I'm trying to set up iTerm2 + mosh + tmux to do my remote work. I can get everything to connect up, but for some reason, the mouse response is funky. If I split my tmux window so I have two panes and ...
0
votes
0answers
11 views

Scrolling in tmux over SSH (PuTTY) [duplicate]

I'm SSH'ing into my RaspPi (Raspbian) with PuTTY and I want to user tmux in order not to worry about a connection ending while I'm installing something. My Problem is, that when I call tmux from a ...
1
vote
1answer
12 views

Tmux detaches from one side when force to adjust redimension

Whenever I have a tmux's session opened at the same time in more than one terminal with different sizes it auto adjusts its size to the smaller one. I could fix that by doing C-b and then :attach -d ...
1
vote
1answer
88 views

Status display after boot on Debian

I run some VM's and some of them are dedicated to several jobs. For example lets say that one machine is running samba and ftp services and another is running Apache and some database. Now what I ...
1
vote
2answers
218 views

Tmux mouse mode does not works with large gnome-terminal

I'm running tmux on gnome-terminal with mouse support activated. When the width of the terminal is not too big then it works flawlessly, however, when I use it in full screen mode the mouse clicks are ...
0
votes
1answer
47 views

Scrolling with shift-control-pageup in gnome-terminal

Is it possible to configure tmux (inside gnome-terminal) so that the key combinations Shift-Ctrl-Page Up and Shift-Ctrl-Page Down can be used to scroll up and down in the terminal's history?
1
vote
1answer
191 views

.tmux.conf: How can I conditionally set a color variable?

Sometimes I use a light-colored terminal, sometimes a dark one. I export a THEME environment variable to conditionally set colors in my .bash_profile and .vimrc. I'm trying to do the same in my ...
0
votes
0answers
7 views

Can I change the tmux prefix to double backslashes?

If so, how do you go about it? set-option -g prefix "\\" doesn't seem work. Is this a bad idea?
0
votes
0answers
18 views

How to select pane in tmux via mouse over

As the title suggests, I want to select a pane in tmux by just doing mouse over on the pane. I don't want remove the need to click the pane to select it. Is that possible?
0
votes
0answers
29 views

Move tmux status bar to the very bottom of my screen

Is it possible to display the tmux status-bar at the very bottom of my monitor and not have the 1cm gap between it and the bottom of my screen? I looked online and could only see the queries ...
417
votes
5answers
161k views

How do I scroll in tmux?

I just started using tmux, and I really like it, but I need to be able to scroll within the buffers/panes/windows I have open. I don't care if it works with the mouse or not. When I search the tmux ...
0
votes
1answer
9 views

Can I rename tmux tabs to hostnames and commands?

I'd like my tmux tabs to display the hostname of the machine (the guest machine if I'm SSHed) and the currently running command on that machine. Is that possible? Thus, if I have machines named "Home" ...
5
votes
2answers
2k views

How to reload tmux config file which has defined multiple sessions?

I'm using two separated sessions in tmux, and I have the following entires in /etc/tmux.conf : set -g base-index 1 new -s logi -n cmd neww -n logi "cat /dev/logi | ccze -m ansi -p syslog -C" splitw ...
6
votes
3answers
646 views

Unable to launch application in tmux

I get this error when I try to launch Sublime Text or SourceTree from tmux: $ subl Unable to launch Sublime Text 2 $ stree Unable to open SourceTree It seems that I can't open os x apps either: $ ...
1
vote
1answer
24 views

How to make zsh always show environment variable name instead of the path?

I have an environment variable set to my projects folder like this: PROJ=$HOME/projects When I want to open a project folder i just type PROJ/project_name and the shell opens the directory and my ...
49
votes
6answers
23k views

How can I make tmux use my default shell?

On a new setup, tmux is using bash instead of my default (zsh). How can I force it to use zsh?
70
votes
6answers
27k views

tmux vs. screen

I'm about to get back into using screen, but I have been hearing people occasionally mention tmux as a better alternative. Does it really offer an alternative to all the features screen offers, such ...
0
votes
0answers
3 views

How to quickly select paths or words from program output?

I have a program that outputs file paths and certain words that I would like to quickly copy and paste (e.g. ps). Is it possible to bind a key so that tmux will search up and select next delimited ...
0
votes
4answers
526 views

Correct use of Tmux and Irssi via SSH

I'm pretty new with Tmux. I'm looking for a way to connect a Tmux session locally to a distant one, running on my server with irssi and other stuff. If i start a regular session with tmux And ...
1
vote
3answers
508 views

How do I select entire words with Tmux's mouse mode?

The default tmux mouse mode seems to select words by character -- this is a little too granular for me; if I click [or double-click] in the middle of a word, I'd like it to start selecting the entire ...
0
votes
1answer
29 views

Change tmux window list color

I want to change the color of window list selection highlight (yellow on the screenshot), but can't find the proper parameter. Anyone knows how to do it in .tmux.conf? My current configuration.
0
votes
0answers
14 views

Execute commnad after server started in other pane with tmuxifier or tmux

I have a window with several panes where I execute commands to start the servers. I want to be able to execute commands after a server is running. To run commands in the same pane is not possible ...
2
votes
3answers
345 views

Is it possible to spawn an ssh-agent for a new tmux session?

I've seen lots of hacks for re-establishing contact with a GUI session's SSH agent from within tmux (and screen) sessions. I'm wondering if it's possible to de-couple from the GUI and spawn an ...
4
votes
1answer
162 views

Switching solarized colors with mintty and tmux

I am trying to find a way to easily toggle between light/dark solarized themes without needing to create a new terminal/tmux session. I am running mintty on a Windows machine and usually log into a ...
0
votes
0answers
19 views

Session name background in tmux changes to red

My tmux status bar looks like this: Every now and again it changes to this, i.e. the session name background changes to red. I suppose this has to do with the exit status of the last command but ...
1
vote
1answer
48 views

Interactive search of tmux sessions

When switching between tmux sessions with the interactive session menu (<prefix>-s), you can jump to a specific session by typing the session's numeric or alphabetical index, e.g. (0) + ...
1
vote
1answer
98 views

tmux printing u'0x001b' and “]112” randomly

So I've lived with this problem for several weeks now, hoping that if I just let it happen enough, I would figure out the underlying trigger. No luck. tmux in bash in gnome-terminal in XMonad on ...
12
votes
4answers
3k views

Synchronize pasteboard between remote tmux session and local Mac OS pasteboard

Setup: I use iTerm2 on MacOS to connect to a remote server. The remote server runs tmux, in which I open files and edit in vim sessions. Problem: I can't copy/paste between the remote tmux session ...