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
3k views

Attempting to install tmux on CentOS 6.4 or CentOS 6.5 fails with error: ‘EVBUFFER_EOL_LF’ undeclared

I tried compiling tmux using the following steps: yum -y install ncurses-devel libevent-devel wget http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz tar -xvzf tmux-1.9a.tar.gz cd tmux-1.9a ...
0
votes
0answers
4 views

tmux freezed pane in copy-mode

tmux seems to have a limit on scroll backs buffer and block my process when it is full. Any method to prevent accidental blocking of process? Maybe auto quite the copy-mode when I disconnect? How to ...
4
votes
3answers
1k views

How to make my terminal look like this

I ran across this the other day and was instantly amazed. He says he uses a custom Vim colorscheme (easy) and dwm with tmux. I've downloaded tmux and I'm having some issues with it (my CTRL-b ...
0
votes
0answers
10 views

tmux monitor-activity — active activity vs stopped activity

I'm curious if it is possible to have a different visual indicator for active activity (e.g. stream of text) and stopped activity (e.g. command executed, printed a few lines and stopped) in an ...
0
votes
2answers
108 views

Disallowing windows to rename themselves in tmux

I've installed tmux on an OS X system with zsh provided by oh-my-zsh. I usually use quite a number of tmux windows for a whole bunch of ssh sessions, and I like to keep these windows named after the ...
73
votes
5answers
23k views

Restore tmux session after reboot

Is there any way to save a tmux session? In other words, if I reboot the computer, will I always lose the sessions?
3
votes
4answers
2k views

Why are random letters inserted in my tmux session?

Sometimes when I use the mouse, or press and hold a movement key in tmux, random characters are inserted. For example, when I press the left movement key D is often inserted. A left mouse click often ...
0
votes
0answers
6 views

Equivalent to 'base-index' for sessions?

In my .tmux.conf I have the following line: set -g base-index 1 Which means that in a new tmux session, the first window to be created is numbered 1 instead of 0. I'd like tmux to also do this ...
31
votes
4answers
8k views

tmux disregarding the configuration file

I just installed tmux on Ubuntu 10.04 and tried to remap the prefix key to C-a by creating the file ~/.tmux.conf with these lines: set-option -g prefix C-a unbind-key C-b When starting tmux, both ...
0
votes
1answer
10 views

How do I terminate windows directly from window choice mode in tmux?

I want to go into window choice mode (prefix-w) and then be able to kill windows without choosing them (hitting the Enter key). Is this possible without configuration changes? Is it possible at all? ...
0
votes
1answer
15 views

How can I close a Tmux session and stay connected to Tmux?

I typically run Tmux with multiple sessions, usually one per project with multiple windows within. When I want to throw away a session, I type exit. This closes the session, but also detaches from ...
0
votes
0answers
13 views

Disable mouse reporting in a terminal session after tmux exits unexpectedly

I currently use iTerm2 and frequently SSH into remote servers and start a tmux session. On all of those servers, when SSH'ing into them, I automatically create a tmux config that enables mouse ...
0
votes
1answer
97 views

Tmux New Window Default Name

I'm using tmux on Fedora 20 (I installed the default tmux rpm using yum). When I create a new window inside tmux, the default title is something like this: user@hoest:/path/to/this/folder which is ...
2
votes
3answers
1k views

Run a GUI in screen or tmux (or alternative)

I have an application that's gui only that constantly needs to run. The problem is that I can't install a full desktop just for this application (my OS is debian and ubuntu cli). So I was wondering ...
1
vote
0answers
13 views

share local and remote tmux sessions

There seem to be many related questions but I'd like to see a specific workaround. So, I used to be an avid iTerm2 user (irrelevant) and I started using tmux remotely because I want to avoid SSH ...
0
votes
1answer
25 views

After each command tmux prints: ps1_update: command not found

On Linux Ubuntu 11.04, after each command (cd, ls, vim...) successful or not, tmux prints out as a last line ps1_update: command not found. Is there any config option I am missing? Thank you very ...
0
votes
1answer
34 views

In tmux, after ssh a server, how to send R code in vim to R consol

I installed tmux and vim-r-plugin in local machine (ref: http://manuals.bioinformatics.ucr.edu/home/programming-in-r/vim-r), and use ssh to log in a server (only vim-r-plugin and screen installed). ...
0
votes
1answer
53 views

Is there a way to copy/paste with iterm2 on osx over ssh with tmux and vim?

Given I am SSHed into a server and have tmux running, is there any straightforward way to be able to yank into a register in vim and: have that text be available in my tmux clipboard? have that text ...
1
vote
2answers
317 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.
0
votes
0answers
12 views

How to specify a log folder for tmux?

By default, tmux log messages are stored in the current directory, is it possible to set up tmux so that all these files are saved in one place?
13
votes
2answers
2k views

Tmux current pane border not obvious

I'm struggling to tell which pane is the current one in tmux if there are only two. The border only seems to highlight the adjoining edge which makes it impossible to tell. Here's a Gif to highlight ...
0
votes
1answer
27 views

Using cURL to retreive public IP for tmux config creates too many connections

I am currently using the command: curl icanhazip.com and the option set -g status-left ... in my tmux.conf to retrieve and display my public IP in status bar. This works great, although I am really ...
1
vote
3answers
433 views

tmux bind-key with two keys

In ~/.tmux.conf, with bind-key v split-window "vim" I can launch vim in a split window. how I can use two keys in a tmux bind-key ? Example: bind-key vG split-window "vim +$"
1
vote
1answer
23 views

Switching tmux zoom between panes without zooming out

After zooming in to a tmux pane, I'd like to zoom in on another pane (preferably the next) without zooming out first. How can I do it?
0
votes
1answer
24 views

Tmux: Restore automatic window title after rename-window

By default, tmux will show the title of the focused pane in the status bar. After using rename-window to set a title manually, how do you restore the default behavior? First idea was to set a blank ...
0
votes
2answers
49 views

In tmux, can I get `exit` to exit the containing terminal window and not the session itself?

So when I open a new terminal (I use terminator on Arch Linux), I have it configured to either open a new tmux session if one doesn't exist, or attach to an existing one. When I type exit at the ...
23
votes
3answers
6k views

Tmux and ZSH custom prompt : bug with window name

I have customized my ZSH prompt with oh-my-zsh to make it more readable and add information about git if I'm in a repository. Example : bob@inf [~/docs] % bob@inf [~/src/nicest] master % (in a git ...
1
vote
1answer
46 views

Tmux somehow forgets prefix after certain key-bind

I did not change default prefix i.e. C-b. I added the following key binding in my tmux.conf bind -n C-M-w send-keys M-w\; \ run-shell "tmux save-buffer - | xclip -i -selection clipboard" ...
1
vote
3answers
595 views

tmux - how can I map new keys for the window (pane) cycle?

In the tmux application, how can I map ctrl-a, o (window cycle) to ctrl-a, w ?
0
votes
2answers
14 views

How to add horizontal pane above vertical panes in tmux?

I remember doing this before, but it was pretty tricky and I can't quite remember the combination of commands to get it to work. How can I turn my window with two vertical panes: ...
83
votes
6answers
30k views

Scroll shell output with mouse in tmux

Mouse scrolling doesn't work in tmux the way it works when I run shell without tmux (in Gnome Terminal). It seems tmux sends mouse scroll events as if I pressed Up/Down keys. But I want it to scroll ...
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 ...
0
votes
3answers
1k views

vim tmux backspace ^?

I'm having a strange problem: When sshing into a particular host (from OSX to RHEL5), vim seems to forget how to backspace, but only in a tmux session, ie: ssh foo@bar.com vim test Backspace ...
0
votes
0answers
15 views

Reload user group assignments inside tmux (or byobu/screen)

This question handles reloading group assignments without logging out, but it doesn't really treat a situation where you want the group assignments to be reset inside an existing tmux (or byobu or GNU ...
0
votes
2answers
704 views

Copy text from remote via iTerm2 with Tmux to OS X clipboard

I'd tried using iTerm2 beta Build 1.0.0.20120724 and using bind C-y run-shell "reattach-to-user-namespace -l zsh -c 'tmux show-buffer | pbcopy'" in .tmux.conf but none works. The solutions I found ...
1
vote
0answers
203 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 ...
0
votes
1answer
20 views

Ignore TMUX prefix?

I have my tmux prefix key bound to ` via set -g prefix ` I have been using this for a while and like it. The problem is, on rare occasions I actually need the ` accent. If I am in vim this is not ...
0
votes
1answer
31 views

How to port my current bash history over when opening a tmux session?

I often find myself in this situation: I start doing something in a terminal. I need more terminal space, so I open tmux. History is gone, even the commands I wanted to run inside tmux. How can I ...
3
votes
3answers
2k views

Tmux forgets the directory where the session was created

When I create multiple sessions in tmux, the current directory for every new window in subsequent sessions is set as the current directory for the first one. For example: -> cd /home/one ...
1
vote
1answer
158 views

open Safari and Finder failed in tmux

OS X 10.9.2, tmux 1.9a install via brew. In tmux: $ open /System/Library/CoreServices/Finder.app ...
1
vote
2answers
666 views

Get Ctrl+Arrow to work under tmux+urxvt

I have tmux command key as C-a. C-Left/C-Right to jump between words (or whatever it is called) works just fine in urxvt alone, but under urxvt/tmux it'll print '5D' and '5C' for Left/Right ...
0
votes
1answer
21 views

How to fg a process suspended before starting tmux inside the new tmux session?

How to 1. suspend a process with ^Z, 2. start tmux and 3. fg (or bg) the suspended process? $ find / [.....] ^Z [1]+ Stopped sleep 10 $ tmux $ fg -bash: fg: current: no such job ...
1
vote
0answers
9 views

Scroll with mouse in tmux without mouse highlighting controlled by tmux

From this question, Scroll shell output with mouse in tmux the setting setw -g mode-mouse on allows mouse scroll in tmux. This also causes mouse highlighting by click and drag to be controlled by ...
0
votes
1answer
57 views

watching output of “ps aux | grep blah” in tmux will not work?

I am trying to run this - watch "ps aux | grep myShittyProcess" in a tmux session. This process myShittyProcess was also started in a tmux session. The ps aux works without watch command. But as ...
0
votes
1answer
16 views

How to config tmux so that new windows reuse working directory of last window?

When I open new window or new pane in a tmux session, the directory is always where I started the session. More often than not, I'm expecting the new windows or new panes to be in the working ...
3
votes
0answers
131 views

Display unicode in tmux?

This is urxvt without tmux This is urxvt with tmux and utf8 not enabled in the config This is urxvt with tmux and utf8 enabled in the config How can I make tmux act consistent with the ...
0
votes
0answers
13 views

suppressing spurious invisible tmux/terminal output

I'm using tmux to run multiple terminals sessions. The issue I am having is that my top-level terminal program has a feature where it will notify me if there is any activity in a non-visible tab. ...
16
votes
4answers
2k views

Is there any way to prevent tmux freezing when lots of text is output to the terminal?

In a tmux session inside xterm when a programs generates lots of ouput (like a cat very_long_file the whole session in frozen for a while. Even if I press Ctrl-C nothing is interrupted. Presumably ...
1
vote
1answer
28 views

Why do I see the unicode character è when I type Alt-h in my xterm on centos?

I am sshing into a centos box from an ubuntu box. I keep seeing è when I type Alt-h (aka M-h). I want to use this key combo in tmux bindings but it doesn't work because tmux doesn't recognize utf8 ...
1
vote
0answers
44 views

tmux shows weirdly encoded history on OSX

If I do the "history" command in tmux, I get a really weird result. Anyone got a hint on what to do to get normal output? The output looks like this: 477 ◆┬▒⎺▒└☃◆ 478 c▒├ ◆┬▒⎺▒└☃◆ 479 ...