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
0answers
2 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
11 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
7 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
89 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
6 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
22 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
27 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
30 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
276 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
10 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
1k 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
21 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
411 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 +$"
0
votes
1answer
17 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
18 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
46 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
36 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
571 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
11 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: ...
82
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 ...
15
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
11 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
655 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
194 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
17 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
27 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 ...
0
votes
1answer
127 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
626 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
17 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
7 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
42 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 ...
-1
votes
0answers
26 views

Missing xterm-256color and screen256-color entries in terminfo

The results are confusing when searching for xterm-256-color and screen-256-color in terminfo. Looking for xterm-256color, i get xterm+256color. What's the difference between the two, one with "-" ...
0
votes
1answer
13 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
118 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
11 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
24 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
34 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 ...
25
votes
4answers
16k views

Byobu versus gnu screen versus tmux

So far I have used konsole to manage multiple shell sessions but it seems that byobu, gnu screen, and tmux offer a better support for multiple shells. I have never used neither of them before. One of ...
3
votes
2answers
381 views

How to capture session name into tmux variable?

I want to execute an external command based on the value of my session name. I know that the :display-message '#S' will give me the session name, but I want to have that name automatically sent to my ...
0
votes
0answers
47 views

tmux window last line to statusbar

I am running an update-script within tmux, and just to see that the progress is ticking on I would like to see the output from the last line within tmux statusbar. My idea is to use something that ...
1
vote
0answers
24 views

tmux: Page Up/Down in Cygwin

Unfortunately it seems like the normal C-b > PgUp or C-b > ctrl+arrows aren't working; instead, I'm just seeing the characters 5~ be printed whenever I C-b and then try to use PgUp. Even mouse mode ...
3
votes
0answers
76 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 ...
0
votes
2answers
51 views

SSH'd (via Cygwin) vim to write to local file

Okay, so I'm trying to solve the problem of getting the contents of a yanked register from a SSH'd session in Vim, to go to the Windows clipboard. Here's the scenario: SSH into development ...
1
vote
1answer
19 views

tmux: close session while open

I am using tmux to manage multiple terminal windows. Currently I have 2 windows open with multiple panes. How can I close the session from inside of tmux. I know that I have to use the prefix (for me ...
3
votes
5answers
3k views

Messed up keys in vim when running inside tmux

I have been playing with tmux and I'm loving it. However, there's an annoying issue when running vim inside it. Somehow the arrow keys get remapped, but only on certain times, like when firing up ...