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
1answer
69 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
2answers
307 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
86 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
125 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
107 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
1answer
106 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
194 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
427 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" ]] ...
2
votes
1answer
462 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
383 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
87 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
45 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
221 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.
3
votes
1answer
950 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 ...
3
votes
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 ...
4
votes
1answer
872 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
518 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
384 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
83 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
26 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 ...
13
votes
2answers
5k 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
2k 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
145 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
46 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
182 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
74 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
50 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 ...
4
votes
2answers
320 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
206 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
952 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
515 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
188 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
253 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 ...
1
vote
2answers
61 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
1answer
121 views

Vim only takes up half the screen in tmux

When I run vim in tmux, it only takes up half the screen (usually the left half). I would like vim to use up the whole screen, but don't know how. Tmux still seems to consider the entire screen as ...
4
votes
1answer
244 views

TMUX: Configure length of titles

I have tmux configured to show my current working directory for each window (it gets this from bash) The problem is, sometimes the directory names get too long and it takes up a lot of space. In ...
1
vote
2answers
196 views

tmux session not resuming to the same from different entry points?

I don't know if this is supposed to work by default, but it seems like when I try to resume a tmux session I have from one machine or a different one. I am using two different kinds of connection to ...
-1
votes
1answer
54 views

How to access multiple gmail accounts from the terminal

Is there a way to access several email accounts (gmail or yahoo) from the command line, I am using tmux I want to be able to view received and send emails without accessing chrome or any other ...
5
votes
1answer
805 views

On tmux, what is the difference between “bind” and “bind-key”?

On .tmux.conf, what is the difference between "bind" and "bind-key"?
1
vote
1answer
107 views

changing .tmux.conf binding for prefix

Trying to transition to tmux (version 1.6) on OS X 10.7 (so I'm sure I am making a noob mistake) and having problems with the simplest of commands. In my ~/.tmux.conf I have to map the prefix to ...
2
votes
1answer
221 views

why won't tmux resize terminal window to honor vi lines setting?

Say I open a terminal $ echo $LINES 25 $ vi :set lines? 25 :set lines=50 :!echo $LINES 50 -as I'd expect (and the terminal window resizes and everything works). But if I start tmux from a fresh ...
0
votes
2answers
378 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 ...
8
votes
1answer
801 views

How to tab completion when typing command in tmux?

Some commands (kill-session and kill-server) have the same prefix. When I type (prefix:kill-seTab), tmux won't give me any result. Is there a option to show wildmenu for auto-completion inside tmux? ...
1
vote
1answer
176 views

Use forward slash as a key command in tmux

In tmux, is it possible to bind forward slash to a command? The command I want to create is below: bind-key -nr C-M-/ kill-window \; next-window This config errors with: /home/joe/.tmux.conf:42: ...
2
votes
1answer
167 views

optionally run several commands when starting tmux

I have a ~/.tmux/dev file which looks like this: selectp -t 0 # select the first pane splitw -h -p 50 # split it into two halves selectp -t 1 # select the new, second (1) pane splitw -v -p 50 ...
0
votes
1answer
400 views

tmux key binding: Window not found

My problem is I can't make tmux key bindings to switch windows. I'm running tmux terminal multiplexer on the FreeBSD server. tmux is started automatically for all remote logins using ~/.bash_profile: ...
0
votes
1answer
1k views

Tmux pane selection with mouse

I have the following problem while using tmux under Ubuntu. I enabled mouse-mode to switch between panes by clicking the mouse, but the switching is not always successful, and random characters appear ...
2
votes
2answers
65 views

tmux — naming windows and selecting them via fuzzy matching

I want to be able to name my tmux windows and select them using fuzzy matching (similar to LustyJuggler or Ctrl-P in vim). Is this possible with tmux?
2
votes
1answer
52 views

How to bind tmux key #?

I am unable to bind the # key to a tmux command. I have tried bind \# command-prompt -p "create vert pane from (put window-number[.pane-number]): " "join-pane -sv ':%%'" bind # command-prompt -p ...