tmux is terminal multiplexer software, allowing users to work with terminals using multiple windows and panes, which can be created, removed, attached, and reattached as needed.

learn more… | top users | synonyms

3
votes
1answer
439 views

Is there a way to get the size of a pane in tmux?

I've just resized a pane using by holding leader (C-b) and using up/down arrow keys. I know I could just use percentages, but it would be handy if tmux told me the sizing of current layout.
3
votes
3answers
2k 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 ...
3
votes
1answer
435 views

tmux - how-to enable automatic switching from 80 to 132 columns and back

Currently in our terminal based accounting system, clients mostly use putty (0.61) and when a report is viewed in the terminal, an escape code is issued that kicks the screen from 80 to 132 columns if ...
3
votes
1answer
322 views

tmux can't handle short cuts that use my alt key

tmux can't handle short cuts that use my alt key For example: bind-key -n M-l next-window bind-key -n M-h previous-window I have noticed that when I type M-l and M-h in my shell I get these ...
3
votes
1answer
609 views

tmux session switcher now displays windows belonging to sesions

I recently compiled tmux from source rather than going through homebrew for some reason I can no longer recall. At the same time, switching sessions via ^b sstarted to display all of the windows under ...
3
votes
1answer
268 views

Anyone know how I can use the same keys to move between Vim windows as well as Tmux (or tiling WM) panes?

Anyone know how I can use the same keys to move between Vim windows as well as Tmux (or tiling WM) panes? For example when I use my key combination to move to the right pane within VIM, VIM should ...
3
votes
3answers
847 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 ...
3
votes
1answer
806 views

tmux equivalent of screen's 'at' command?

GNU screen has a command, at, which lets you control other sessions by sending screen commands to them. Does tmux have something like that? I tried send-prefix and send-keys, but those send keys to ...
3
votes
2answers
42 views

How to view logs online during heavy usage with screen, tmux or Byobu?

Normally I use tail -F, but on heavy usage it is getting irresponsible and unreadable. On ssh I also use buyobu to type password only once. But when any of screens become irresponsible then all ...
3
votes
2answers
503 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 ...
3
votes
1answer
1k 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 ...
3
votes
1answer
1k 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 ...
3
votes
1answer
132 views

Two rows of windows in tmux

I tend to have several windows open in tmux at once. I also automatically name them according to which task I'm working on. As such, I am running out of room for the labels of my tmux windows. Is ...
3
votes
1answer
555 views

Is it possible to have zsh+keychain+tmux not ask for keys?

I'm using tmux and zsh, and I've recently been learning about ssh-agent and keychain. From the manpage for zsh, it says that it will source .zlogin only if the shell is, well, a login shell. ...
3
votes
0answers
14 views

tmux text cut off by split line using iTerm2

I am using zsh, iTerm2, and tmux. When I split the window into multiple panes the line covers up a little bit of the text. Here's a picture of what it looks like: It works fine using terminal, so I ...
3
votes
0answers
155 views

Bug with resizing panes in tmux when using ZSH

I am using Tmux with ZSH and have a problem when trying to resize panels. I am currently using these bindings to resize panels as I work: unbind-key M-j ; bind-key -n M-j resize-pane -D 1 ...
3
votes
0answers
241 views

Tmux copy the selection to /dev/clipboard without key-mapping

Many answers related to this topic suggest to map Ctrl+y to a command that pipes tmux show-buffer to xclip. In the specific case of cygwin, the correct way to interract with the Windows clipboard is ...
3
votes
1answer
131 views

Is there a way to disable closing panes in Tmux?

I am using tmuxinator. Here is my project file. project_name: Network project_root: ~/Code/Network tabs: - editor: vim - worker: layout: cd49,181x48,0,0[181x5,0,0{90x5,0,0,90x5,91,0},...
3
votes
0answers
93 views

iTerm 2 running tmux session causes “startup disk almost full” randomly

Anytime I run a tmux session, disk space will randomly begin filling up and the computer will slow down, then everything goes back to normal. This happens periodically. I am using iTerm 2. Does ...
3
votes
2answers
2k views

Keyboard shortcut for switching panes in tmux in iTerm2 on OS X

I have tmux installed with iTerm2 on OS X. While I can do Cmd+left/right to switch between tabs, I cannot seem to be able to switch between panes under the same tab using Ctl+b o (that is, Control ...
3
votes
1answer
966 views

tmux: Link panes?

Is it possible to do this? I've got a window 'dev' with several panes in it. One of those windows is an irssi process. Is it possible to make that same irssi process appear in window 'play' as another ...
2
votes
3answers
2k views

Adding Git repo and branch to Tmux status line

I have found a Tmux configuration file that shows how to add the Git branch to the Tmux status line, however It just shows [[ branch ]] no matter if I am in a Git repo or not. I am not sure if this ...
2
votes
1answer
341 views

Text no longer shows after killing program, using tmux

I'm running a Minecraft server and whenever I "sh rtoolkit.sh" to start the server, everything works fine however once I stop the server and return to the command line ready to enter a command, text I ...
2
votes
2answers
2k views

Sending commands to parent tmux session from vim

I have a split window setup with vim and Lynx in tmux. I'm trying to build a script so that I can send a custom command to vim which will save the script I'm working on, switch focus to the Lynx pane, ...
2
votes
3answers
2k views

Pair programming with tmux and Vagrant

Does anyone have a clear step-by-step guide for setting up a shared tmux session on a Vagrant vbox that my coworkers (on our local office lan) could SSH into? The articles I've found online only seem ...
2
votes
1answer
3k 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... ...
2
votes
1answer
3k views

How do I bind the tmux prefix key to C-'?

I'd like to set my tmux prefix key to Ctrl-apostrophe, but when I use set-option prefix "C-'" or set-option prefix C-"'", tmux complains that "unknown key: C-'". Similarly for ` and :. Is there a way ...
2
votes
1answer
152 views

tmux - get pwd of another pane in a bash script?

Is there anyway to find out information about the current working directory of any pane from within a tmux session? I'd like to write a bash script that changes the directory of the current pane to ...
2
votes
1answer
1k views

How do I resize the ‘usable area’ of a tmux session?

I'm using a ‘session group’, to keep multiple OS-level, window-managed terminal windows open to different tmux ‘windows’ (so they share a default working-directory, tmux settings, etceteras.) Those ...
2
votes
2answers
5k views

Enabling mouse in tmux conflicts with paste in X [duplicate]

This question is similar but not identical to tmux -- any way to enable scrolling, but not selection? I'm using tmux within gnome-terminal. When I use setw -g mode-mouse on in tmux to enable ...
2
votes
2answers
168 views

Tmux swap window with window to the left

I know I can swap windows using swap-window -d *source* -t *dest*, but I'd like to be able to swap the current window with the window to the left/right (effectively, 'move' a window left and right ...
2
votes
2answers
301 views

Creating a “kill current session” shortcut in Tmux

Is it possible to create a shortcut in Tmux which would kill current session? Typing "kill-session -t mysession" is not very convenient I imagine something like bind X kill-session -t $...
2
votes
1answer
1k views

How can I increase the font size for tmux status line?

Is there a way to increase the font size in the tmux status line independent of the size in the panes?
2
votes
1answer
694 views

Tmux new named session exited

I can't start a new named tmux session. Below shows what gets printed. Note the 0;95;c weird statement. > tmux new test [exited] > 0;95;c I can, however start a un-named session and rename it ...
2
votes
3answers
1k views

How do I select entire words with Tmux's mouse mode?

The default tmux mouse mode seems to select words by character -- this is a little too granular for me; if I click [or double-click] in the middle of a word, I'd like it to start selecting the entire ...
2
votes
1answer
1k views

How to execute a cleanup command on tmux server/session exit?

To improve my workflow a little I have written a few wrapper scripts to automatically start some commands when I want to work on a project. When I'm done however, and clean all the tmux tabs for this ...
2
votes
1answer
284 views

changing .tmux.conf binding for prefix

Trying to transition to tmux (version 1.6) on OS X 10.7 (so I'm sure I am making a noob mistake) and having problems with the simplest of commands. In my ~/.tmux.conf I have to map the prefix to Ctrl-...
2
votes
2answers
135 views

how to show different status when shell idle in tmux

I'm running multiple screen by tmux. I wish tmux could show 'red' color status if one window stop send out any text for some seconds. Is there that function?
2
votes
1answer
1k views

tmux, how to prevent broken pipe?

I'm new to ssh and tmux. I want to run a rake task on a remote server via ssh but I want to shutdown my computer and want the task continue running on the server. So I discovered tmux with seems to ...
2
votes
2answers
2k views

Why won't top command show the right result?

You want to find the line 3427 1 root S 36964 124% 2% tmux -L l in the following screenshots of top command. Why can tmux use more than 100 percent of memory? That is confusing... Is ...
2
votes
3answers
443 views

Is it possible to spawn an ssh-agent for a new tmux session?

I've seen lots of hacks for re-establishing contact with a GUI session's SSH agent from within tmux (and screen) sessions. I'm wondering if it's possible to de-couple from the GUI and spawn an ssh-...
2
votes
2answers
580 views

Why doesn't tmux respond to shortcuts properly?

I'm using OSX 10.8.1 in combination with iTerm2, zsh and tmux via Homebrew. The beginning of my ~/.tmux.conf file looks like this: set -g prefix C-a unbind C-b bind-key a send-prefix set -sg escape-...
2
votes
3answers
1k 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 +$"
2
votes
1answer
77 views

what does the 'set -g' command do in tmux?

I see references to set -g <command> in tmux, for example set -g status-right ' #[bg=colour33] Branch #[(git branch)] ' I have googled and looked in man tmux and also info tmux but cant find ...
2
votes
1answer
2k views

Configuring function keys in PuTTY for both Vim and Midnight Commander under tmux?

First off, I'm aware that I can use Alt+1 (through 9 and 0) to synthesize the respective function keys (F1 through F10) in Midnight Commander. It has helped me many times, but by default I still press ...
2
votes
1answer
704 views

Some shift+arrows not working in tmux?

I am attempting customize tmux so that Ctrl-Arrows are used for pane selection Shift-Arrows are used for pane resizing Alt-Arrows (left, right) are used for window selection ... all are working ...
2
votes
2answers
2k views

Start a new session from within tmux with ZSH_TMUX_AUTOSTART=true

I have enabled tmux plugin in oh-my-zsh with ZSH_TMUX_AUTOSTART=true and now every time I open terminal I am attached to a session. That part is really nice. The problem is – now I can't start a new ...
2
votes
2answers
1k views

Vim colors do not appear correctly in tmux terminal running within rxvt-unicode terminal

I am using Debian (Jessie). My ~/.vimrc file contains the following statement. colorscheme murphy My ~/.Xresources file contains the following properties. URxvt.background: #000000 URxvt....
2
votes
2answers
4k 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
3answers
932 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.