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
0answers
68 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
38 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
40 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
24 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
0answers
38 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
49 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
34 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
25 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 ...
0
votes
1answer
42 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
81 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
15 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
93 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
51 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
69 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
38 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
24 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 ...
2
votes
1answer
350 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
131 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
165 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
219 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
594 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
25 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 ...
0
votes
0answers
116 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
26 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
33 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
86 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
80 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
1answer
91 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
29 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
19 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
159 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
94 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
86 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 ...
2
votes
1answer
214 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
125 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
92 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 ...
1
vote
1answer
982 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
68 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
78 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
156 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
126 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
387 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
388 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
744 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
554 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
304 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
159 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
42 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
27 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 ...