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
2answers
51 views

How to recover tmux output?

I have a Play application that runs in tmux and its logs print on that terminal. I saw the last lines of it. It has generated only a few thousand lines of logs at most. I want to recover all the ...
3
votes
1answer
497 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 ...
5
votes
1answer
706 views

tmux - scroll up/down with shift + page up/down into a pane

I would like to be able to scroll up/down into a given pane with the same keybinding that xterm does, i.e SHIFT + Page Up/Down. For example, if the tmux window is divided into 2 vertical panes, I ...
3
votes
1answer
258 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
216 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
19 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
65 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 ...
0
votes
1answer
39 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 ...
4
votes
1answer
119 views

Making vim use the alternate screen

This thing is driving me crazy. I have already searched the internet and SE and found a lot of related questions but none solve my problem. I'm using Zsh inside tmux. Until a couple of days ago ...
0
votes
1answer
59 views

zsh function cannot be used in tmux

I wrote up a special function to wrap a command, in ZSH, so it doesn't output any warnings and runs the process in my background. This command works great without tmux, but when I try to use it in a ...
1
vote
1answer
93 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 ...
0
votes
0answers
45 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 ...
1
vote
1answer
107 views

Tmux mouse mode does not works with large gnome-terminal

I'm running tmux on gnome-terminal with mouse support activated. When the width of the terminal is not too big then it works flawlessly, however, when I use it in full screen mode the mouse clicks are ...
1
vote
0answers
78 views

Case insensitive search in tmux's copy mode?

So in tmux's copy mode you can search text with the ? (at least if it's in vi mode). However, it only finds matches with the same case. I also want matches that have a different case. So, when I ...
0
votes
0answers
62 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
33 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
141 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
137 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
21 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
256 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
107 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 ...
3
votes
1answer
121 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
47 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
33 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
286 views

How to resize tmux panes inside tty

I'm not sure if I used the right term, but by "tty" I understand the console that you can switch to using ctrl+alt+f2 key combination. echo $TERM points to linux. Anyway, when I enter the tmux mode I ...
0
votes
1answer
405 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
510 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
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
35 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
216 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
41 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
44 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
160 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
106 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
501 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
63 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
34 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
562 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
168 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
108 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
505 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
175 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 ...
0
votes
0answers
138 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 ...
4
votes
1answer
3k 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
85 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
98 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
240 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 ...