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
175 views

tmux freezes when using ctrl-prefix ctrl-y

I'm using a custom .tmux.conf file which looks like this: unbind-key C-b set -g prefix C-a bind-key C-a send-prefix set-window-option -g mode-keys vi bind-key -t vi-copy 'v' begin-selection bind-key ...
0
votes
1answer
857 views

How to set the default path/directory to the directory where the session was started?

I'm using an old version of tmux (v1.5). How can I configure tmux to set the default directory to the directory where the session was started? This isn't a problem with newer versions of tmux (1.7 ...
1
vote
1answer
997 views

Weird behaviour/rendering on tmux in osx

I've been having this issue for some time now, and it is really annoying, but I can't figure out what's wrong. When I start a tmux session on my terminal, no matter if it is on Terminal.app or iTerm2, ...
2
votes
0answers
2k 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 ...
1
vote
1answer
1k views

Option key does not work as Meta in Tmux

I am using Mac OSX Lion. I have checked "Use Option key as Meta" in Terminal preferences. Although the Option key seems to work fine as Meta in Bash, when I use it in Tmux (over SSH) it does not work ...
0
votes
2answers
496 views

Linux: Start tmux inside fbterm on login

So here's what I want: On every tty login, fbterm starts. It gives me a better resolution than the linux console, has working UTF-8 support (I'm sure it's entirely my fault that the linux console ...
1
vote
0answers
215 views

Resume term after ssh disconnect without multiplexer (screen/tmux)

Screen and tmux (like emacs) are fancy feature rich terminal multiplexers designed to let you efficiently manage terminals as if it was 1985 but they just complicate the simple task of resuming an ssh ...
1
vote
0answers
52 views

Tmux window name changes when creating a new pane

I have several problems with windows names and panes. First if I have a window named "myWin" and I create a new pane, the name is changed into "bash" whereas I want it to remain "myWin". Second, if ...
1
vote
1answer
37 views

Setting the color coditionally in tmux.conf

So I have a little ruby script that pings our CI server and returns a :-) or a :-( based on if the build is passing or failing. Now, what I'd like to do is make it red if it's a fail and green if ...
1
vote
0answers
25 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: ...
3
votes
0answers
83 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 current workflow ...
3
votes
1answer
3k 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
287 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
54 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 ...
4
votes
1answer
309 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 ...
1
vote
2answers
714 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 ...
1
vote
2answers
535 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
72 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
77 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
461 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
140 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
119 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
117 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
242 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
490 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
2k 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
621 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
490 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
96 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
51 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
2answers
346 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
1k 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
2k 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
1k 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
673 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
411 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
88 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 ...
16
votes
3answers
6k 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
217 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
47 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
245 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
51 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
374 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
228 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
1k 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
567 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 ...