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

0
votes
0answers
71 views

tmux mode-mouse scroll by page rather than line

I have mode-mouse on, and sometimes find setting terminal-overrides to xterm:smcup@rmcup@* to be useful however I would like the mouse wheel to scroll by page rather than line. Currently I bind ...
1
vote
0answers
18 views

Tmux splitting a parent window with existing panes

Let's say I have a window with two panes (size irrelevant, 'A' = active) +-----+-----+ | | A | | | | | | | | | | +-----+-----+ If I were to split-window I would get: ...
2
votes
0answers
62 views

Tmux copy mode: stay in copy mode after selection

When using tmux, I often find a need to copy multiple items from one pane or window into another. When those items are located close to each other in a long scrollback buffer, my workflow typically ...
0
votes
0answers
31 views

If I'm using ` (backtick) for the tmux prefix, how can I escape ` to another key?

Something ideal would be something like the two key sequence jj.
2
votes
1answer
1k views

How to delete detach tmux session?

I detached myself from a tmux session. $ tmux ls 0: 1 windows (created Thu Aug 22 22:52:17 2013) [218x59] Is there anyway I can simply delete it now that I am detached from it?
2
votes
1answer
214 views

Tmux new named session exited

I can't start a new named tmux session. Below shows what gets printed. Note the 0;95;c weird statement. > tmux new test [exited] > 0;95;c I can, however start a un-named session and rename it ...
0
votes
1answer
51 views

Why is $HOME being unset within vim within a tmux session

Up-to-date Fedora 19, when I launch tmux and at the bash prompt and type: echo $HOME my $HOME environment variable is displayed. If I then launch vim (with and without --noplugin -U none) and ...
1
vote
1answer
168 views

tmux prints “1;2c” whenever I start it or re-attach to a session in cygwin

If I run tmux from my cygwin bash shell it prints 1;2c on my prompt after tmux launches. If I attach to a session I had open earlier using tmux attach-session it does the same thing. If I had vim open ...
0
votes
1answer
230 views

Tmux set color of changed window

I let Tmux let me know when contents of non-current window changes. setw -g monitor-activity on set -g visual-activity on The only problem is, the color of it sucks. I'd like to change the color ...
0
votes
2answers
266 views

Common tmux scrolling solutions are not working

I have the following in my .tmux.conf file: set -g mode-mouse on set-window-option -g mode-mouse copy-mode set -g terminal-overrides 'xterm*:smcup@:rmcup@' In all running sessions, I used C-b ...
0
votes
1answer
56 views

Tmux nothing happening

I just started learning how to use tmux following this tutorial. The problem is, what ever I type in (Ctrl-b c, or any other shortcut), nothing happens. Just nothing. I open tmux and there is a ...
2
votes
1answer
59 views

Is there a way to get the size of a pane in tmux?

I've just resized a pane using by holding leader (C-b) and using up/down arrow keys. I know I could just use percentages, but it would be handy if tmux told me the sizing of current layout.
0
votes
1answer
163 views

Transfer current command to a detachable session (tmux/screen)

I'm currently running a backup and it now needs to be transferred to detachable one like on tmux/screen. Is there a way to do this when the command is currently running? I can send the command the ...
0
votes
0answers
81 views

vim colo directive ignored in console

I have the following in my .vimrc: if has("gui_running") colo desert " ... else colo distinguished " ... endif gvim works fine. When I open vim in gnome-terminal in tmux, the colo ...
1
vote
1answer
104 views

Shortcut to split window + ssh + cd to dir

When using tmux, I often do the following: Create a new window ssh to remote box cd to specific dir launch process Now I want to tail the logfile of the process I just launched in a split. So I do ...
1
vote
1answer
102 views

Vim write latency in tmux

I have noticed that, while using Vim in tmux over an SSH session, when I write a buffer to disk (i.e., :w) occasionally, while Vim says it's been written, the file remains unchanged. In fact, often ...
0
votes
0answers
12 views

Xforwarding current running app

I have some application left open on my Linux machine at the workplace. I'm wondering if I can do XForwarding that current opened app to my Mac OS X at home? I've successfully run an application ...
0
votes
1answer
96 views

Using screen/Tmux to keep application running

I'm wondering if this is possible. I have my Linux Machine running at my workplace and I want to have XChat (IRC Client) running there all the time. I want to be able to connect to that client from ...
1
vote
0answers
147 views

How to see images in tmux

I browse w3m with an images plugin. On normal terminals and even (typically minimally-featureful) virtual terminals I can see images. But when I browse with w3m in tmux the images don't show up. If ...
2
votes
1answer
333 views

tmux + putty: Using mouse off window shows junk characters

Setup: tmux 1.8 running on Ubuntu 12.04 connecting from Windows with Putty. tmux has mouse mode on. Steps to reproduce: Select the putty window as active, but use the mouse off the window (i.e in ...
1
vote
1answer
1k views

.profile and .bash_profile ignored when starting tmux from .bashrc?

I've been having an issue with getting my .profile to be sourced when SSHing into an Ubuntu 12.04 server instance. My .bashrc does the following towards the end: if [[ "$TERM" != "screen-256color" ]] ...
0
votes
1answer
292 views

With tmux on OSX, how can I make command+k clear more gracefully?

When I use the terminal in OSX, I frequently use ⌘+K to clear the screen and scrollback buffer. It's deep in muscle memory. I've started tinkering with tmux, and one gripe is that ⌘+K wipes the whole ...
0
votes
1answer
271 views

quit tmux server and end all running processes

I am running a tmux server configured by tmuxinator. In one pane my django server is running: python manage.py run_gunicorn If i quit tmux by calling the kill-server command, the run_gunicorn ...
1
vote
0answers
81 views

Getting bash history-complete-backwards/fowards and vi-mode to work with tmux

I'm using bash on Ubuntu 12.04 my inputrc contains: "\e[A": history-search-backward "\e[B": history-search-forward set show-all-if-ambiguous on set completion-ignore-case on"" for my history ...
0
votes
1answer
39 views

Detatch the *other* tmux client(s)

I use tmux when working on my desktop, and then if I want to work outside on my laptop I ssh over to the desktop and attach to the same session. Then when I close my laptop and go back inside, the ...
1
vote
1answer
131 views

Is there a way to persist tmux sessions across reboots?

In particular, can the tmux session data be written to a file, and reloaded on reboot? I'm thinking of something similar to Vim's mksession command.
2
votes
1answer
733 views

X11 forwarding doesn't work with multiple tmux sessions

If I start a tmux session locally and leave it open, then ssh in remotely and start a new tmux session (not attaching to the old one, a brand spanking new session) X11 forwarding seems to break. I've ...
0
votes
0answers
180 views

tmux not setting percent resize correctly on split-window

In tmux, I am splitting my window into several panes, all via .tmux.conf: Everything works when I split it into three windows (top left, top right, bottom). When I then proceed to split the top left ...
1
vote
0answers
1k views

tmux: enable mouse scrolling in vim instead of history buffer

I have just started using tmux 1.8 recently, after working with screen for a while. After reading things here and there on the internet, I came up with following ~/.tmux.conf However when I open vim ...
3
votes
1answer
618 views

How to get the nicklist in irssi to appear everytime?

I'm an avid user of tmux and irssi. I've been trying to use the nicklist.pl with irssi in tmux with only half success. I'm currently following the instructions here: Running nicklist with irssi using ...
0
votes
1answer
377 views

Adding Git repo and branch to Tmux status line

I have found a Tmux configuration file that shows how to add the Git branch to the Tmux status line, however It just shows [[ branch ]] no matter if I am in a Git repo or not. I am not sure if this ...
3
votes
2answers
345 views

How to execute a function in bash or zsh on every letter being typed into prompt?

I know about preexec() hooks for zsh and the way this can be achieved in bash. ( link ) But can i get the current input while still typing? The idea behind this question is the following: in order ...
0
votes
1answer
69 views

change tmux windowlist selection color

Im trying to theme tmux to my liking, and im stuck at the windowlist selection. ^a+w = shows me the windowlist, with selection bar in yellow; anyone know the incantation for modifying that specific ...
0
votes
1answer
25 views

how to restore tmux last application

I have been using tmux for a while. one thing is very annoying me is that there is a way to restore last time application. for example: in my current tmux session, I have three windows (two running ...
11
votes
2answers
3k views

Tmux - move pane to new window

I know that it's possible in Tmux to 'join' a window as a pane, but is it possible to move a pane to it's own window (tab)? I tried searching it up the man page but couldn't find it. I guess it is ...
1
vote
2answers
1k views

Enabling mouse in tmux conflicts with paste in X [duplicate]

This question is similar but not identical to tmux -- any way to enable scrolling, but not selection? I'm using tmux within gnome-terminal. When I use setw -g mode-mouse on in tmux to enable ...
1
vote
2answers
83 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
0answers
39 views

tmux window last line to statusbar

I am running an update-script within tmux, and just to see that the progress is ticking on I would like to see the output from the last line within tmux statusbar. My idea is to use something that ...
1
vote
1answer
133 views

ZSH Quote escaping and expansion

I am trying to run tmux, passing several commands at once, and I'm unable to properly quote the string. The command succeeds when manually entered on the command line: ~% /usr/local/bin/tmux ...
0
votes
0answers
68 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
1answer
46 views

Check if Vim has more than one window open

I'd like to overload my tmux binding which cycles through panes to also cycle through Vim windows if the current pane happens to be running Vim. I can detect the presence of Vim by checking the pane ...
2
votes
2answers
241 views

If I have left and right tmux panes, how can I visually tell which is focused?

I've tinkered with tmux and have seen settings that would highlight the border of the active pane. This works fine for three or more panes. However, my most common usage would be two panes side by ...
1
vote
1answer
165 views

Can't run 'rails' inside Tmux session in Terminal

I just tried rails inside a tmux session in iTerm2 and it returns as -bash: /usr/bin/rails: /usr/bin/ruby: bad interpreter: No such file or directory I can run rails outside of tmux . I am using ...
1
vote
1answer
810 views

OS X + tmux + vim + solarize + colors

I want to use tmux with console vim having solarized colors on OS X, but the colors are broken inside tmux. There are quite some questions/answers and blog posts about that topic, but solutions ...
0
votes
1answer
408 views

How to execute a cleanup command on tmux server/session exit?

To improve my workflow a little I have written a few wrapper scripts to automatically start some commands when I want to work on a project. When I'm done however, and clean all the tmux tabs for this ...
1
vote
1answer
140 views

Tmux key-table explanation

I was reading through the tmux man pages in order to understand the different options for bind-key and bumped into the -t flag: If -t is present, key is bound in key-table: the binding for command ...
0
votes
1answer
188 views

ncmpcpp: playlist + library layout

I'm trying to replicate this ncmpcpp configuration found on ArchLinux BBS. It features a double-paned playlist window: on the left it shows a classic playlist, on the right there is a file browser ...
0
votes
0answers
27 views

How to stop tmux from automatically switching windows

I have several windows in tmux, and it keeps switching windows without me requesting it. I haven't pinned down what triggers it -- it coincides with output in the target window, but when I run sleep ...
1
vote
2answers
56 views

How do I shove a pane to the left in tmux?

Suppose I have three panes stacked up horizontally and I would like to push one of them to the far left, such the other two panes are still stacked but on the right. Current Setup: Pane 1 ---------- ...
0
votes
0answers
39 views

key repeat when scrolling in tmux

When using tmux, I would like to keep the PgUp/Down key pressed to scroll quickly between pages. I press Ctrl-b PgUp to enter copy mode and to scroll the page, but if I keep it pressed, nothing ...