Tagged Questions

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
1answer
1k views

Vim inside tmux on Mac OS X Mavericks can't copy to clipboard

Since going to Mavericks, I've lost the ability to use the clipboard in vim when run under tmux. I install vim via brew. For reference, yes, the +clipboard option is definitely set. When I run vim ...
1
vote
0answers
38 views

Tmux - dynamically split vertically and horizontally based on # of commands?

I'm curious to know if there's a way that tmux can dynamically split and adjust windows based on the number of commands you provide. Currently, this is the way I'm having to do something tmux ...
1
vote
0answers
244 views

tmux in zsh with vi mode, toggle cursor shape between normal and insert mode

(note: I wrote this question on stackoverflow, but got flagged as offtopic, so I'm re-writing it here) Here's what I want: Consistent behavior (as much as possible) between Vim, MacVim, zsh with ...
0
votes
1answer
47 views

Running a vim ex command within tmux corrupts pane

I'm running into strange issue where running ack from within vim's ex mode corrupts my tmux pane. I'm using iTerm2. E.g. :!ack "foo bar baz" Results in something like this: where all the ...
0
votes
1answer
45 views

tmux dividers rendering improperly

So I (somehow) just started using tmux a couple days ago, and (needless to say) it's amazing. I have a nice little initialization script that pulls up all my rails/db/vim etc stuff and a lot of that ...
0
votes
1answer
174 views

Gnu Screen: “type” in all windows at once

I read this question on SO about the stuff command in screen. It's pretty useful, but I wondered if there was a way to actually interactively type into multiple windows at once? - stuff seems to be ...
0
votes
1answer
116 views

.tmux.conf not being read?

Trying to use tmux installed via Homebrew on a Mac. I have the following inside ~/.tmux.conf: set -g default-terminal "screen-256color" Before I run tmux, in the regular Terminal.app, TERM is ...
4
votes
1answer
658 views

Making TMUX use Alt+Num to select window

I have been messing with TMUX, and I am liking the configuration abilities. The window list at the bottom makes me think that the same shortcut for changing windows in Irssi, should work in TMUX, but ...
1
vote
0answers
65 views

Update prompt on window change in tmux

Windows in tmux can easily become out of sync. For example, in both windows I might have: ~/dir git:(master *) $ The * indicates changes. Then I run git commit in one window, or change to another ...
0
votes
1answer
36 views

Clearing everything but current line in tmux

I have my Control-K shortcut bound in tmux like this: bind -n C-k send-keys -R \; clear-history \; This clears the scrollback buffer's history as well as the current screen, which is what I want. ...
0
votes
0answers
756 views

Connection to dbus session failed

I am running Debian 6 with Gnome 2.30.2 (old, but it's the workstation I have to use). When I want to run dbus-monitor or any other dbus application from within tmux, I get an error: $ dbus-monitor ...
0
votes
2answers
198 views

Background process text appears in terminal vim

First time poster, long time lurker, searched, couldn’t find etc, etc. I’m running vim in tmux, in iTerm2. I’m running a server with Grunt.js, which I have running in the background, out of my way. I ...
2
votes
0answers
118 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 ...
3
votes
1answer
604 views

Tmux copy-pipe with mouse selection

I use copy-pipe on OS X to share the system clipboard with Tmux 1.8: unbind -t vi-copy Enter bind -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" This works when entering select mode ...
1
vote
1answer
195 views

resizing a terminal within tmux doesn't seem to work

I'm new to tmux, and I'm having trouble finding a solution to resizing my actual terminal (I haven't learned quite enough about panes and windows yet). I'm running tmux1.6, and bash as my shell, on ...
1
vote
0answers
165 views

Make mouse-scrolling and -copying work in tmux under urxvt

If I add setw -g mode-mouse on to my ~/.tmux.conf I can get the following to work in xterm + tmux: Click and hold left mouse button in the terminal Scroll up with mouse wheel Position cursor at some ...
5
votes
2answers
4k views

Resizing pane is not working for tmux on mac?

After searching through, I figured ctrl+b ( PREFIX ) then ctrl + arrow should resize the current pane. But it is not working. Am I missing anything ? Thanks.
1
vote
1answer
90 views

How to bind tmux command to Alt-<x>, not M-<x>?

The problem with bind -n M-x is that it binds not only to Alt-x but also Esc-x. I want the command to execute only on Alt-x
1
vote
0answers
104 views

Tmux and Vi in PuTTY = No arrow keys in Vi

I'm using PuTTY as my terminal with tmux. At first I couldn't resize panes so based on this thread I added the below to my .tmux.conf" set -g terminal-overrides ...
0
votes
1answer
267 views

tmux mouse mode and scrolling very unstable - garbage printed

I am using (or trying to) tmux on Linux Mint 15 via byobu. I am finding the mouse mode very hard to use since most of the time instead of counting it as a click, the terminal prints out random ...
2
votes
1answer
190 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
920 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
1k 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, ...
3
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
542 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
238 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
40 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
27 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
90 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 ...
4
votes
1answer
4k 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
300 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
56 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
342 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
802 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
598 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
76 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
80 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
550 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
88 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
154 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
121 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
124 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
263 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
515 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
693 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
544 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
98 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 ...