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

3
votes
1answer
658 views

vim inside tmux: throws “E388” with <C-Left> in insert mode [duplicate]

I've read that in insert mode in vim, one can use <C-Left> and <C-Right> to move by words. This works for me, but only as far as I don't run vim inside tmux terminal splitter. When inside ...
7
votes
5answers
1k views

tmux equivalent of “screen -R”?

The tmux attach command acts more like a combination of screen -r and screen -x -- first it trys to attach to the most recently detached session, and then if none is available it will attach to a ...
3
votes
1answer
418 views

Rename Iterm2 tab from within tmux

I can use the following function to rename a iterm2 tab and that works great. function rename_tab { echo -ne "\033]0;"$@"\007" } However, if I run this function while in a tmux session, then ...
0
votes
0answers
11 views

How to create a pane with a height of 1

I'm writing a bash script that uses tmux. In it, I want to create a pane wioth a height of 1 line. I tried doing tmux splitw -v -l 1, but that just gave me a pane with a height of 2. I also tried ...
0
votes
1answer
280 views

Detach from local tmux session to attach to remote tmux?

I currently have my new Konsole instances pop up already within a tmux session, whether new or attached, since tmux is awesome and you should always be inside tmux, right? However, this puts me in a ...
0
votes
0answers
20 views

Don't reduce tmux size to smallest client?

When running wemux for instance, you don't want a mirror client to be able to reduce the view size for every client watching. Is there a way to force a window size or let a single client manage the ...
0
votes
1answer
49 views

What prefix keys are allowable in tmux?

Lots of people modify their tmux prefix keys. Usually it's Control+something. But surely other things are possible. I tried, for example, ,t, but on starting tmux, I got the error bad key: ,t. So ...
0
votes
1answer
72 views

How do you close the tmux list-keys screen?

In tmux, after pressing the prefix key (Ctrl + b in my case) and then pressing question mark to go to the list-keys screen, how do you close out of the list-keys screen and return back to whatever you ...
7
votes
2answers
568 views

Can you toggle the visibility of the status bar in tmux?

I know you can turn the status bar on and off with set -g status off But I would like to bind a key to toggle the visibility of this status bar. Is there some way to toggle this setting?
1
vote
1answer
151 views

Tmux - Check if server is up

Is there any known tmux-function, like tmux has-session -t <session>, but to check if the tmux server is currently running? It would be handy when writing automation-scripts. When checking if a ...
4
votes
2answers
2k views

Force update for tmux status bar

I'd like to have the current time in my tmux status line. I got as far as: $ tmux set status-right '"#22T" %H:%M:%S %d-%b-%y' This does alter the time in the status line to include seconds. ...
0
votes
0answers
57 views

How to rearrange windows into tabs with iterm2

I'm using iterm2--tmux--tmuxinator integration. That's awesome. However, iterm2 wants to open up a different window for each window, and there's no obvious way to configure that to use tabs. The only ...
0
votes
1answer
155 views

Tracing an error message when starting Tmux or Vim

Recently when I start Tmux on my Mac (with Powerline) in iTerm, I get an error git: Permission denied. I also get the error over and over again as I type in Vim (also using Powerline). As you can ...
0
votes
0answers
86 views

Why commands work at top of file, but not at the end

This is .tmux.conf file & as you can see it has a shell selection command at top. But it doesn't work if I put this line at the bottom. when I open tmux, it doesn't show any error or anything, but ...
0
votes
0answers
39 views

Restore tmux sessions with relevant conent on reboot

While Restore tmux session after reboot does give us a list of possibilities, I couldn't find any readily-available script to restore a tmux session with relevant content from each pane/window at the ...
1
vote
1answer
187 views

What are the benefits using terminal multiplexer

I am using terminal, vim, mutt, etc daily. I use windows, tabs and panes. Now I came to know about Tmux, terminal-multiplexer. But I am not quite sure why I need to use it. I already using windows and ...
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
0answers
23 views

How to set urxvt so it can ignore a certain utf-8 character as a part of a word?

I'm using debian testing distro, and I have urxvt pseudo terminal. I need the character "│" to be ignored and not treated as a part of a word. When I double click (with Lshift in tmux) on a word it ...
0
votes
1answer
476 views

Is there anything like iTerm2 + Byobu on Windows?

I'm stuck running Windows as my primary OS at work. I'm trying hard to find a good console environment, but falling short. I'd like to have iTerm2 + Byobu. So far I'm using conEmu with the cygwin ...
1
vote
0answers
143 views

Is there a way to set margins/paddings in tmux?

I'm just wondering if something can be done with the effect presented below: As you can see, I divided the window into 3 panes. When it comes to copying, everything is fine except double click on a ...
5
votes
1answer
146 views

Can I use the output from a ZSH custom function in Tmux's status bar?

I defined a function in ~/.zshrc: foo() { print "FOO" } I'd like to output it in my Tmux status bar. I added this to ~/.tmux.conf: set -g status-right "foo: #(foo)" But I only see the static ...
2
votes
1answer
50 views

Weird Tmux issue

When attempting to split Tmux windows by using commands, I get the opposite effect of what one should expect: The command tmux split-window -v Produces a horizontal split, while the command ...
0
votes
1answer
34 views

Tmux ignores first splitw command in .tmux.conf

set -g history-limit 50000 new -s ds -n WindowName Command neww -n foo/bar foo splitw -h splitw -h splitw -v splitw -v This is my tmux.conf file. I start it by using tmux attach. It does everything ...
3
votes
1answer
1k views

How to reload tmux config file which has defined multiple sessions?

I'm using two separated sessions in tmux, and I have the following entires in /etc/tmux.conf : set -g base-index 1 new -s logi -n cmd neww -n logi "cat /dev/logi | ccze -m ansi -p syslog -C" splitw ...
0
votes
1answer
521 views

How to start a command in tmux + urxvt setup?

I'm trying to make a pretty nice desktop console which can show system logs from /dev/logi . The device displays new content from several files in /var/log . I want to use urxvt and tmux to do so. ...
3
votes
1answer
638 views

Does “ulimit -Su” limit the number of user processes created in interactive login subshells and tmux sessions created therein?

A few months ago, I wrote a set of bash scripts utilizing tmux to create a simple IDE on an AIX 7.1 server. There is a bug in one of my scripts that will sometimes generate user processes very rapidly ...
0
votes
0answers
10 views

Is it possible to use a single function key to turn on/off the mouse in Tmux?

Is it possible to use a single function key to turn on/off the mouse in Tmux? For example: I want to use F12 to toggle the mouse on/off.
0
votes
1answer
38 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
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
39 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 ...
5
votes
1answer
782 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?
1
vote
1answer
224 views

How do I correctly rebind select-pane commands in tmux?

By default, tmux seems to be using C-b, Left to move left a pane C-b, Right to move right pane ... I want to use C-b, h to move left a pane C-b, l to move right a pane ... Here's my current ...
1
vote
0answers
251 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 ...
1
vote
2answers
276 views

tmux on a mac, how can I move the divider lines

On my linux system I use prefix (redefined as ctrl-a for me) than ctrl- arrow keys to move the divider line but this isn't working on my new mac. Any idea how I can move the divider lines?
0
votes
1answer
46 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
184 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
117 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 ...
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
0answers
853 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
206 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
119 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
664 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
3k views

howto safely quit tmux session? [closed]

Currently I'm using kill-session command, but it looks a bit aggressive and often leave sub-processes running, e.g. I have the following processes running in separate tmux windows: lighttpd -D -f ...
2
votes
1answer
2k views

Error trying to get tmux 1.6 installed - E: Unable to locate package libevent

$ pwd $ /home/durrantm/Downloads/tmux-1.6 durrantm.../tmux-1.6$ ./configure && make checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... ...
1
vote
0answers
172 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 ...
2
votes
1answer
489 views

In tmux, arrow and ctrl+arrow both result in the same code

Ubuntu 12.10, TERM is set to screen-256color in putty and tmux.conf, confirmed when I export both in and out of a tmux session. If I run cat > /dev/null and then press <down> then ...
4
votes
2answers
2k views

tmux: Cannot SSH from inside tmux, even though I have agent-forwarding (ssh -A) on [duplicate]

So I have keys to some servers stored locally on my MacBook, but I work from inside a Virtual Machine a considerable amount of time, so I SSH to the VM with ssh -A. This allows me to SSH to servers ...
28
votes
3answers
7k views

tmux exits with [exited] on mac os x

I just installed tmux (a terminal multiplexer) with homebrew. When I try to run it, it always exits with [exited] Nothing shows up. When I try to run tmux list-session I get an error: failed ...
1
vote
2answers
649 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 ...
11
votes
6answers
4k views

Using tmux with both emacs and vim

What is the best default key binding for tmux and why if one sometimes uses emacs and sometimes uses vim (on Linux Mint 12)? Ctrl-b is OK, but that conflicts a bit with the bash shell and emacs.