tmux is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.

learn more… | top users | synonyms

93
votes
6answers
32k views

Create new-window with current directory in tmux

Is is possible to open a new-window with its working directory set to the one I am currently in. I am using zsh, if it matters.
1
vote
1answer
4k views

Failed to get bus connection: Could not connect: Connection refused

When I'm running evince file.pdf I got this error Failed to get bus connection: Could not connect: Connection refused Ubuntu 12.04 I have to reboot. Can I repair this error without reboot?
1
vote
1answer
4k views

Terminal colors for Vim Airline and Tmux Tmuxline

When using Vim on its own with Vundle and Airline the theme appears normally: When I have loaded it up in Tmuxline, the theme uses different colors and even Vim looks different: Here's my Tmux ...
1
vote
1answer
56 views

How to stop tmux capturing key sequences?

My xterm is configured to produce this sequence: Ctrl ~Shift <Key>Tab: string(0x1b) string("[27;5;9~") \n\ Under tmux it almost always does not work (sometimes it passes through). What could ...
0
votes
0answers
22 views

Different vim colors and styles in Tmux and Gnome

I am using tmux, and recently found out that the same vim colorshemes inside and outside of tmux have different colors Left is tmux in gnome-terminal, right is plain gnome-terminal, gnome-terminal ...
0
votes
0answers
6 views

How to tell tmux 'new' to respect `base-index'

TL;DR - Is it possible to start tmux from a script so numbering of the first window (which is created by tmux new) respects the setting of base-index in tmux.conf? I'm starting tmux from a script and ...
2
votes
2answers
801 views

What is tmux's “message-command”?

I've been trying to figure out how to change the background color of the command prompt in tmux's copy mode. It defaults to black on orange, at least on my setup. I changed the color of the command ...
1
vote
2answers
194 views

Updated my arch linux server and now I get tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968

I recently updated my Arch Linux server and during that process tmux got updated. I was using tmux while the upgrade was going on and used it afterwards, but all during the same SSH session. Now, ...
1
vote
2answers
25 views

Is it possible to start tmux visible session

The code below will run source ~/.bashrc under tmux but this will not open tmux on the terminal. #!/bin/bash tmux new-session -d -s my_session 'source ~/.bashrc' I want the below effect from the ...
0
votes
0answers
28 views

Can't use F1, F2, F3, F4 as prefix key

I've been using F9 as my prefix key for a while but decided F3 would work better. I changed nothing else in my .tmux.config and F3 doesn't work, I get a system error beep instead. Same with F1-F4. ...
6
votes
2answers
2k views

How do I show simple uptime in tmux's status bar?

I want to show the uptime in the tmux status bar in the format DD:HH:MM, without any of the other cruft that the uptime command shows. I've tried these: #set -g status-left '#[fg=green]#H ...
0
votes
0answers
11 views

Send-keys across tmux panes in vim in Cygwin is painfully slow

I am using vimux or vim-tbone to send code to an interpreter in another pane. It works fine with any shell, but I can't get it to work properly in windows. I can't have a VM, so I use cygwin at work ...
20
votes
2answers
4k views

copy (to X clipboard) shortcut in .tmux.conf

In order to copy text to X clipboard in tmux, what I currently do is: go selection mode with prefix[ start selection with space (using mode-keys vi btw) select the text and press enter copy tmux ...
7
votes
2answers
3k views

What are valid keys for tmux?

I was trying to learn how to use the bind-key [-cnr] [-t key-table] key command [arguments] better, but was having some trouble figuring out what "valid keys" are for bind-key command. I tried doing ...
3
votes
1answer
887 views

tmux unable to start a new session? “1;2c”

Introduction I just installed tmux onto my CentOS 7 machine, but I have encountered a bewildering issue. Whenever I try to attempt to start up a session using tmux or tmux new -s session-name, it ...
12
votes
4answers
3k views

How can I bind multiple tmux commands to one keystroke?

Specifically I'm trying to give a notification after some command was completed. So, for example, if I reload my configuration file, I'd like to have some confirmation that it worked, which might be ...
2
votes
1answer
367 views

How can I bind Ctrl-Alt-[0-9] in Tmux?

I am able to bind Ctrl-Alt-[a-z] using M-C-a, M-C-b etc. However, when I attempt to bind Ctrl-Alt and a number key I get: .tmux.conf: 45: unknown key: M-C-0 Any idea why? I'm running tmux ver 1.7 ...
14
votes
3answers
10k views

Use system clipboard in vi-copy mode in tmux

I'm running tmux 1.6 and I'm trying to configure it to use vi-style keybindings as well as use the system clipboard when copying in interactive mode: set-window-option -g mode-keys vi bind-key -t ...
5
votes
2answers
825 views

Set tmux status line color based on hostname

I'd like tmux to pick a color dynamically based on the hostname of the machine. Since I share my tmux.conf across several machines, assigning an unique color for each of those hosts would be handy ...
2
votes
1answer
195 views

Tmux is not able to distinguish between insert and shift-insert

Insert when in xterm, gives ^[[2~ and, Shift+Insert gives ^[[2;1~ All this is good until I start tmux. Note that the $TERM variable remains the same, so this issue should not be related to ...
11
votes
3answers
1k views

Escape sequences in output of script called from ncurses application

I'm currently running mcabber as my Jabber client (which uses ncurses) in a tmux session on my homeserver. Locally i run iTerm2 as a terminal emulator, which supports the triggering of growl ...
7
votes
1answer
2k views

tmux equivalent to GNU screen's :wrap mode

I'm a long time screen user trying to make the jump to tmux. One screen feature I use is the ability to truncate Ctrla :set wrap output. This is especially useful when tailing log files or following ...
0
votes
1answer
40 views

remote osx split panes in ubuntu byobu

My Problem I have OSX 10.10, connect to a byobu in ubuntu 14.04 over ssh. I want to split panes vertically & horizontally. But ctrl+F2 & shift+F2 just gives me beep sound. Additional Info ...
12
votes
2answers
2k views

tmux session killed when disconnecting from ssh

Summary: I'm trying to figure out why my tmux session dies when I disconnect from ssh Details: I have tmux installed on an Arch Linux system. When I start a tmux session I can detach from it and ...
0
votes
0answers
17 views

vim + tmux: some shortcuts broken?

When I am using vim inside of tmux, some of my shortcuts are broken. E.g. I have bound Ctrl + up/down and Shift + up/down in my .vimrc and when I'm running vim inside of tmux these shortcuts do not ...
0
votes
1answer
44 views

How to change default new window directory from within the tmux

I recently moved from GNU screen to tmux. I find it quite similar but with bigger support (I switched due to problem with escape-time in neovim- resolution was only for tmux). Unfortunately in tmux ...
0
votes
2answers
1k views

tmux with iterm2 attach a remote session

I'm using the Tmux integrating with ITerm2, which can create a tab in ITerm 2 for each window created by Tmux. But somehow this doesn't make much sense for the usual SSH scenario, where we first SSH ...
1
vote
2answers
48 views

Is there a program like tmux or screen but only for attaching or detaching a session

I was wondering if there was a program like GNU/screen or tmux that would allow me to attach or detach a session with a running process but would not provide all of the other features such as windows ...
3
votes
2answers
54 views

Remapping Ctrl-P to Ctrl-O for getting the previous command?

I am using zsh with tmux and I like to have Ctrl-P as a shortcut to 'previous pane'. I would however still keep the original 'previous command' functionality of Ctrl-P and map it to Ctrl-O. How can I ...
3
votes
3answers
64 views

persistent ssh sessions without screen or tmux

My work seems to have deliberately crippled screen and tmux such that they destroy all sessions on logout (they didn't answer when I opened a ticket about it). i.e., when I [detach and] log out, ...
3
votes
2answers
950 views

How can I find the valid values for TERM to use in tmux?

When starting tmux I need to pass a valid terminal type. Since I am scripting the initial startup of tmux I would like to cover all bases by figuring out the valid values of TERM on the current ...
14
votes
3answers
6k views

Using Ctrl+B in less within tmux

I use the Ctrl+B command prefix in tmux, however this clashes with Ctrl+B in less, which is used for scrolling up a file. How can I get this to work? Do I have to set a different command prefix in ...
1
vote
2answers
1k views

Set Ctrl+Shift as prefix in tmux

I would want to have Ctrl+Shift as prefix in tmux (because I'm trying to switch from terminator, and the majority of my shortcuts used Ctrl+Shift). I tried this in my .tmux.conf : unbind-key C-b ...
1
vote
0answers
38 views

Bash command history stops working after starting new tmux session

My bash command history stops working after starting a new tmux session. No previous commands when typing up, down, reverse search, no output from running history. I've confirmed that this happens ...
2
votes
3answers
331 views

How to use vim-slime from within a single tmux session?

I'm trying to integrate ipython and vim through a single tmux session using the popular vim plugin "vim-slime." The problem is that while I can get it to work fine provided that vim is opened in a ...
3
votes
2answers
406 views

How to set Cols and Lines for a Subprocess

I have a script that runs a series of scripts numbered 001,002,003,004... etc down to 041 right now, will be more in the future - and these scripts them selves use some cursor control to print a ...
2
votes
3answers
1k views

Tmux Terminfo problem with Zsh key bindings

Zsh in Emacs edit mode comes with the default key binding ALT + Backspace to delete a word on the right side of the cursor and ALT + D to delete a word on the left side. I would like to add the latter ...
3
votes
1answer
69 views

In tmux, is it possible to list all panes in all windows?

Say, I got two windows, Window 1 contains 2 pane (1, 2), Window 2 contains 3 panes(1,2,3), and I'm in pane 1 in Window 1, and I want to jump directly into the pane 2 in Window 2, PREFIX w which is ...
7
votes
4answers
4k views

How to add a horizontal split to tmux window that spans the whole width of the parent window?

When I have a tmux window vertically split into two panes, how can i spawn a new third horizontal pane that stretches over the full width? e.g. How do I get from this: Ctr-b % +–––––––––+–––––––––+ ...
2
votes
1answer
329 views

How does one include the session-name in status bar for byobu-tmux?

I'd like to include the session name of my current tmux session in the status bar. There's nothing in ~/.byobu/status that allows me to do this and including the tmux configuration directive #S in the ...
35
votes
3answers
8k views

protocol version mismatch (client 8, server 6) when trying to upgrade

I'm trying to upgrade to a newer version (that has a bug fix) than my current 1.6. I am on Ubuntu and recently upgraded to Ubuntu 13.04. Ideally I want to use tmux version 1.8 or even 1.9. I've ...
0
votes
1answer
64 views

How Do I Make the tmux Rename Window Prompt Empty by Default?

In tmux, pressing prefix + , prompts you to rename the current window: The (rename-window) prompt is automatically populated with the current window name -- in this case, zsh. I would rather the ...
4
votes
1answer
121 views

How to detect TMux level

Is there any way to detect how many levels of tmux I'm currently in? I've been able to hack it with 2 levels by simply checking [[ -n "$SSH_CLIENT" && -n "$TMUX" ]], so I can have one level on ...
1
vote
0answers
28 views

Remapping Caps Lock to ctrl+b [duplicate]

I recently moved to Linux from OSx and in there I had mapped Caps lock to Ctrl+b. This was mostly done because of tmux. How can I do this in Ubuntu 14? There is a very comprehensive answer here how ...
2
votes
1answer
42 views

Capture tmux status bar content

I wrote an addon to tmux, tmux-gitbar, it adds to tmux status bar some information about the current Git working tree (name of local and remote branch, working tree is clean?, etc.). So basically it's ...
1
vote
1answer
17 views

tmux check interfering with scp usage

My .bashrc file on my server is relatively simple, but it has this chunk to ensure that it automatically connects to tmux on login: echo Checking for tmux if [ -z ${TMUX} ] then /usr/bin/tmux ...
5
votes
2answers
11k views

exit tmux window without quitting the Terminal program

OK I'm new to this. I installed tmux to run a several days experiment. After typing tmux new -s name I got a new window with green banner at the bottom. I compile and run java program. Now I do not ...
3
votes
3answers
765 views

Default tmux config

I've been trying some .tmux.conf files but now I'd like to go back to the original/default configuration. How can I do it? I've been looking for the default file but no luck.
1
vote
0answers
129 views

tmux not executing ~/.bash_profile on start up

I searched the net and many people complained that tmux wasn't executing their .bashrc. The solution thats suggested everywhere was to source .bashrc from within .bash_profile cos tmux launches bash ...
77
votes
3answers
21k views

How do I equally balance tmux(1) split panes?

I'm looking for a behavior that is similar to how vim(1) handles its split windows with ^w =. I know tmux(1) has predefined layouts with ^b Meta[1-5], but this likely does not have the layout that I ...