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

2
votes
1answer
3k views

.profile and .bash_profile ignored when starting tmux from .bashrc?

I've been having an issue with getting my .profile to be sourced when SSHing into an Ubuntu 12.04 server instance. My .bashrc does the following towards the end: if [[ "$TERM" != "screen-256color" ]] ...
2
votes
2answers
126 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
3k views

Triangular box character used in tmux config

On the wemux readme, there is this image: That's a pretty cool status bar he has there. I can see how it's been done - there's a character that looks something like this: \ ##\ ####\ ######\ ...
2
votes
1answer
481 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
1answer
208 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 ...
2
votes
2answers
1k 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
367 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 ...
2
votes
2answers
513 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 ...
2
votes
2answers
6k views

tmux keyboard shortcuts not working properly

I've started using tmux of recent, and changed the bindings so that it would respond to C-a instead of C-b. These are the lines in the .tmux.conf file to do this: unbind C-b set -g prefix C-a But, ...
2
votes
2answers
608 views

Sending Commands to tmux Running in tmux

I'm using tmux to manage my windows, etc, and one of the things I do is SSH to a remote server and connect to a tmux session running there. Once there, however, I cannot sent C-b through to that tmux ...
2
votes
1answer
372 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
2answers
3k 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 ...
2
votes
2answers
557 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.
2
votes
2answers
52 views

Is it possible to freely intersperse vim panes from the same session and other shell panes in tmux?

I would like to have arbitrary arrangements of vim and other terminal panes within tmux. This is a simple example: ------------------------------------ | | | | | ...
2
votes
1answer
2k views

How to use Fn keys in tmux?

I have a bind in vim for F5 key to trim whitespaces and I'm unable to use it in tmux. Instead of that letter "T" appears. Is there's any solution for that? Actually it was working in putty, now I've ...
2
votes
1answer
110 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
628 views

In tmux, arrow and ctrl+arrow both result in the same code

Ubuntu 12.10, TERM is set to screen-256color in putty and tmux.conf, confirmed when I export both in and out of a tmux session. If I run cat > /dev/null and then press <down> then ...
2
votes
1answer
826 views

Binding tmux command key to ctrl-\ on mac

I'd like to use ctrl-\ as the command key for tmux. Ctrl-a and ctrl-b conflict with bash and emacs bindings. set-option -g prefix C-\ When I start a tmux session, I get: /Users/justin/.tmux.conf: ...
2
votes
2answers
2k views

Which is the correct way to config the $TERM and tmux?

I am using gnome-terminal with bash. When I set xterm-256color for $TERM and in .tmux.conf most of the things work but when I try to change the colorscheme of vim the things mess up. When I set ...
2
votes
1answer
1k views

Can you hide the tmux status bar when starting a program like vim?

Some programs, like vim, look much better without the tmux status bar at the bottom. I have already set up a key that toggles the visibility of the status bar, but it would be even awesomer if the ...
2
votes
1answer
1k views

Use Screen commands (C-A C-C, etc.) in byobu-tmux

I was having some troubles with byobu lately while using the screen back-end, so I switched to using the tmux back-end, which works like a charm. The problem is now that my keyboard has tiny F1­-F12 ...
2
votes
1answer
2k views

Solarized background colour off in emacs under tmux

Exhibit I: plain Emacs. Exhibit II: Emacs under tmux. The shades of colours are different, and importantly, the background colour differentiation is nil (e.g. look at the top menu). Anyone run ...
2
votes
1answer
507 views

Display escape characters in tmux

I have a script on my mac that displays the battery level with some color output. The color is based on the battery leve. As the level goes to zero, the color goes from green to red: #!/bin/bash ...
2
votes
1answer
36 views

Join lines in tmux's copy mode

In screen there is this really nice feature that you can join the lines you've selected in copy mode. You do this by hitting Shift + J in copy mode. If you press it again it will add a space as a ...
2
votes
2answers
831 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
2k views

mac os x byobu vertical split using iTerm, tmux, zsh

How to get vertical split on Mac OS X in byobu? Ctrl + F2 is not working. It open new window instead of spliting the current. In oposite spliting horizontaly with shift + F2 works ok.
2
votes
2answers
469 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 ...
2
votes
2answers
3k 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
1answer
93 views

How to bind tmux key #?

I am unable to bind the # key to a tmux command. I have tried bind \# command-prompt -p "create vert pane from (put window-number[.pane-number]): " "join-pane -sv ':%%'" bind # command-prompt -p ...
2
votes
1answer
301 views

tmux combine multiple commands to one vi-copy command or tmux command to yank a line

In tmux, i know we can chain multiple commands to a key by using \; See Here But in vi mode, i want one single key press to go to the beginning of the current line, begin-selection, go to end-of-line, ...
2
votes
1answer
463 views

Is it possible to automatically attach to a tmux session using Chrome's Secure Shell extension?

Using Secure Shell in Chrome, can you automatically attach to a tmux session when SSH-ing to a server? If so, how do you do that?
2
votes
2answers
456 views

Clicking far away in vim in tmux in urxvt

I use vim inside tmux inside urxvt, and the mouse works perfectly well for clicking and selecting text, except when I want to click too far to the right. It seems to be related to the distance in ...
2
votes
1answer
164 views

tmux - How to start executable initially?

With GNU screen I could do, for example: screen -S monitor top A screen would start executing top, and if top ended the screen session would end. Is there a way to do the same thing with tmux? ...
2
votes
1answer
715 views

Move already running program into screen

Is it possible to have a already started program move to screen/tmux? I'd like to have something like the following: program; ^Z screen; fg; I know the above won't work, but is there a way to ...
2
votes
1answer
411 views

Why do I have multiple tmux processes?

I use tmux attach to start tmux and have the following lines in my tmux.conf: new -n TeX bash neww -n Shell bash After starting the terminal emulator and running pgrep I get the following: ~ ...
2
votes
2answers
315 views

How do I create CTRL key bindings in vim when using tmux?

I use Vim inside tmux, and have recently added the following to my .vimrc file: " easy navigation nnoremap <C-Left> :tabprevious nnoremap <C-Right> :tabnext But this seems to have no ...
2
votes
1answer
62 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 ...
2
votes
1answer
673 views

tmux + putty: Using mouse off window shows junk characters

Setup: tmux 1.8 running on Ubuntu 12.04 connecting from Windows with Putty. tmux has mouse mode on. Steps to reproduce: Select the putty window as active, but use the mouse off the window (i.e in ...
2
votes
1answer
508 views

optionally run several commands when starting tmux

I have a ~/.tmux/dev file which looks like this: selectp -t 0 # select the first pane splitw -h -p 50 # split it into two halves selectp -t 1 # select the new, second (1) pane splitw -v -p 50 ...
2
votes
2answers
96 views

tmux — naming windows and selecting them via fuzzy matching

I want to be able to name my tmux windows and select them using fuzzy matching (similar to LustyJuggler or Ctrl-P in vim). Is this possible with tmux?
2
votes
1answer
330 views

Can tmux and a SSH-client on Windows be more integrated?

I am using tmux on my Debian server and PuTTY on Windows. This works as expected, but sometimes I wish, to have a more Windows like feeling when working via SSH, eg. have separate windows for the ...
2
votes
3answers
2k 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 ...
2
votes
1answer
734 views

Trying to set incoming SSH IP address in tmux Status Bar

I'm trying to set the incoming IP address of my SSH client in the tmux status bar but for the life of me I can't figure it out. This is my current setting in my .tmux.conf set -g status-right ...
2
votes
1answer
764 views

Binding number keys in tmux

Is it possible to bind C-1 in tmux? When I try it I receive an error: unknown key: C-1 Here's what I'm trying: bind-key -n C-1 select-window -t 1
2
votes
0answers
80 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 ...
2
votes
0answers
176 views

Mouse click only works once with iterm2/tmux/mosh

I'm trying to set up iTerm2 + mosh + tmux to do my remote work. I can get everything to connect up, but for some reason, the mouse response is funky. If I split my tmux window so I have two panes and ...
2
votes
0answers
116 views

Tmux copy the selection to /dev/clipboard wiithout 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 ...
2
votes
1answer
78 views

Attach to the same tmux session from different nodes of a cluster

I'm working on a computing cluster which has several hundreds of nodes. A load-balancing scheme picks an idle node to login to when ssh-ing into the cluster. As a result, it is very unlikely to ...
2
votes
1answer
572 views

GNU Screen/tmux equivalent for Windows for remote text console (not GUI) connections

Short question: is there any terminal multiplexer that runs in a Windows CMD shell? I suppose PowerShell could be enough too. Complete question: I have a Windows 7 SP1 on a powerful computer ...
2
votes
1answer
56 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 ...