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

2
votes
3answers
336 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
85 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
11 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
31 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
58 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 ...
0
votes
1answer
87 views

tmux and xf86 keys (the 'Fn' key, xf86WakeUp)

I'm interested in hijacking the Fn key on my laptop and using it as the mod key for tmux, but after a bunch of tinkering with xmodmap and tmux.config, I'm not much further along in getting this to ...
0
votes
1answer
52 views

Disable mouse reporting in a terminal session after tmux exits unexpectedly

I currently use iTerm2 and frequently SSH into remote servers and start a tmux session. On all of those servers, when SSH'ing into them, I automatically create a tmux config that enables mouse ...
0
votes
0answers
18 views

Vim and TMux keys coexits

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> ...
0
votes
1answer
19 views

Fixed highlighting in tmux

I miss highlighting (reverse mode) on console since I started to use urxvt + tmux as main terminal. The highlights was replaced with with italic font - what looks pretty cool at first - however I ...
1
vote
1answer
28 views

Execute a program in tmux without scrolling

I use tmux (with zsh, if that helps). I have a pretty good setup, but often I find myself running a program with a lot of output, and then entering copy mode and reverse searching for the line I typed ...
0
votes
0answers
7 views

tmux long lines copy and paste

I use Terminal.app for connecting to remove RHEL box and use tmux there. I have long command lines, more than the terminal width, I copy them and paste to re-execute commands, the problem is that tmux ...
0
votes
0answers
21 views

Vim: mapping for <PageUp>, <PageDown> not working in vim, but working in tmux

Did a clean install a couple days ago, copied over my .vimrc and .tmux.conf, and now Ctrl-F / Ctrl-B doesn't page down / up in vim. Ctrl-F / Ctrl-B work in tmux when selecting text. Weirder still, ...
1
vote
1answer
66 views

tmux' “run-shell” blocks for background processes

I'm using tmux version 1.9a and I noticed that run-shell blocks using of any prefix-key commands until the command terminates. To reproduce this just execute run-shell "sleep 10" and try to ...
1
vote
1answer
71 views

undefined reference to __b64_ntop: tmux compilation error on centOS

I've got tmux at http://tmux.sourceforge.net/. And I've read README carefully, installed all dependencies( libevent, ncurses-dev...). But when I ran "make" command, it showed an error like the ...
0
votes
1answer
39 views

after SSHing into another machine and starting vim, run terminal command in original terminal

I use ssh to remotely login to a machine where I subsequently work primarily from Vim. Sometimes I want to run some shell command on my original machine without leaving Vim. What is a non-disruptive ...
9
votes
4answers
5k views

tmux copy mode - select text block

I'm using tmux with vi keys, and copy/paste works fine as long as you're selecting one line of text, or if you have only one window. When I want to select a block of text (multiple lines, but not full ...
0
votes
1answer
18 views

how do I hide byobu status line?

You know, in tmux there's an option set -g status off that allows me to hide the tmux status bar, can I do the same with byobu? I can't find any option that allows me to hide the status bar and gives ...
0
votes
0answers
14 views

tmux keep ssh window after disconnect and automatically reconnect if remote host is available again

One of my tmux-panes hast two windows, ncmpcpp’s playlist (local ncmpcpp with remote-mpd host) and ncmpcpp’s visualizer (ncmpcpp started via ssh, because the visualizer fifo file can’t be read from ...
0
votes
0answers
18 views

Copying from Emacs to other tmux pane (code execution for Ipython, sql, bash, etc)?

My preferred setup is running a terminal window with several tmux panes (a couple of shells, and an emacs session). What is the easiest way to send code from the emacs pane to be executed in the shell ...
2
votes
3answers
2k views

Pair programming with tmux and Vagrant

Does anyone have a clear step-by-step guide for setting up a shared tmux session on a Vagrant vbox that my coworkers (on our local office lan) could SSH into? The articles I've found online only seem ...
0
votes
1answer
13 views

How to update DBUS_SESSION_BUS_ADDRESS in tmux when that address changes?

I have noticed, that I can’t run steam in a tmux pane: it gave me error Error: Unable to open a connection to X. Check your DISPLAY environment variable and make sure that you have enabled X. If ...
27
votes
2answers
5k views

vim freezes inside tmux

I'm using split panes in tmux - one being vim, other shell. Sometimes, around once a day, vim freezes. I can move between panes, perform any tmux commands, just vim doesn't react to anything. This ...
1
vote
0answers
20 views

Tmux 1.9a - variable #{pane_current_command} doesn't work as expected

I'm trying to get vim-tmux-navigator to work on my my Cygwin (Win7 x64) + Tmux 1.9a but it doesn't. The reason is the variable #{pane_current_command} always returns bash instead of vim, so the ...
45
votes
5answers
23k views

256 color support for vim background in tmux

while using vim within tmux I can see that 256 color support is enabled. with $tput colors However changing the colorscheme in vim while in tmux will change the colorscheme on a per line basis but ...
0
votes
1answer
39 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 ...
2
votes
0answers
41 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 ...
89
votes
5answers
31k views

Restore tmux session after reboot

Is there any way to save a tmux session? In other words, if I reboot the computer, will I always lose the sessions?
0
votes
0answers
10 views

Is it possible to always use systems clipboard when selecting/copying in tmux

I know you can use shift when in tmux to copy to the systems clipboard when selecting. Is it possible to make that the default option, i.e. the way most terminals work by default? Thanks.
0
votes
1answer
18 views

How do I resize the ‘usable area’ of a tmux session?

I'm using a ‘session group’, to keep multiple OS-level, window-managed terminal windows open to different tmux ‘windows’ (so they share a default working-directory, tmux settings, etceteras.) Those ...
0
votes
1answer
27 views

tmux: Detect which process runs in the active pane

Is there a way how to detect what process runs in the active pane? tmux: Find "my" window, check if it's active is related, however, it deals with the detection from within the pane. I ...
1
vote
1answer
18 views

How does one swap two panes in Tmux?

I have two panes in horizontal split. I'd like to have the pane currently on the right to be on the left in the window. I'm not talking about moving the focus (Ctrl+B o). How do I achieve this? 'left ...
0
votes
0answers
33 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 ...
0
votes
0answers
8 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 ...
40
votes
15answers
23k views

What's the best prefix/escape sequence for screen or tmux? [closed]

Screen goes with CTRL+a. tmux, as developed within screen, uses CTRL+b. Both are also keystrokes in other editors, shells, etc. What do you suggest, which one conflictes at least with other programs?
0
votes
1answer
32 views

Pipe directly to a Tmux pane

I've been looking at the available Tmux commands and I can see, out of the box, that I can pipe output from a pane elsewhere or write to the terminal assigned to the session. I would like to have ...
1
vote
1answer
65 views

How can I increase the font size for tmux status line?

Is there a way to increase the font size in the tmux status line independent of the size in the panes?
6
votes
2answers
1k views

Is it possible to change the background color of the tmux pane or window?

I would like different panes to appear in different background colors in my tmux session. Is this possible?
133
votes
10answers
40k views

How do I reorder tmux windows?

In screen, I can just type C-a :number 0 to move a window to the top of the window list and push all the other windows down one. What's the equivalent command sequence for tmux? I looked at the man ...
0
votes
2answers
31 views

In tmux how do I exit the command prompt without typing an invalid command?

I can't figure out how to get out of the command prompt state I sometimes end up in when I hit cntrl+b :. I do this sometimes by accident when I'm about switch panes and then want to go into the vim ...
1
vote
1answer
64 views

Scrolling up and down in tmux session on OSX iTerm 2 and Macbook Pro

I have a Macbook Pro without dedicated PgUp and PgDown keys. What would be proper way to configure iTerm 2 and tmux so that I can scroll back tmux buffer with Fn+Up and Fn+Down (I think these usually ...
1
vote
1answer
15 views

How to automate text selection in tmux?

I'd like to automate the following task in tmux: enter copy mode move the cursor up X lines select Y lines above the cursor yank those lines Is this feasible? How? I was able to enter copy mode ...
3
votes
1answer
208 views

Anyone know how I can use the same keys to move between Vim windows as well as Tmux (or tiling WM) panes?

Anyone know how I can use the same keys to move between Vim windows as well as Tmux (or tiling WM) panes? For example when I use my key combination to move to the right pane within VIM, VIM should ...
0
votes
0answers
24 views

Tmux copy the selection to /dev/clipboard wiithout key-mapping

Many answers related to this topic suggest to map Ctrl+y to a command that pipes tmux show-buffer to xclip. In the specific case of cygwin, the correct way to interract with the Windows clipboard is ...
1
vote
1answer
87 views

tmux in putty: use ctrl-arrow to switch window

I found several questions about this, but I didn't find a working answer. I'm using putty (0.63) to login to my ubuntu 14.04 vps. In tmux I would like to use ctrl-left and ctrl-right to switch tmux ...
4
votes
1answer
6k views

Attempting to install tmux on CentOS 6.4 or CentOS 6.5 fails with error: ‘EVBUFFER_EOL_LF’ undeclared

I tried compiling tmux using the following steps: yum -y install ncurses-devel libevent-devel wget http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz tar -xvzf tmux-1.9a.tar.gz cd tmux-1.9a ...
0
votes
1answer
21 views

OS X terminal eating the shift key

I'm switching from iTerm 2 to the stock OS X 10.8.5 terminal (work policy, iTerm isn't on the approved software list). In my tmux configuration, I've mapped shift-left and shift-right to change ...
1
vote
2answers
130 views

Create custom command in tmux

I know how to bind a key to a command in tmux, but I want to create a custom command (that you can type with prefix key + colon). In this custom command, I want to execute a couple of other commands. ...
1
vote
1answer
39 views

Byobu type keybindings for tmux

I have been using Byobu for some time now and really enjoying it. But now thinking of moving back to tmux. The reason is given in the later half of the question. First of all, the question: The ...
18
votes
3answers
2k views

Is there an easy way to save a byobu session such that I can reload it after a reboot?

I understand that there is a way of defining windows that are opened in a session by saving configuration files in $BYOBU_CONFIG_DIR. But is there a way (command or script) to save the current session ...