Questions tagged [tmux]

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.

tmux is intended to be a simple, modern, BSD-licensed alternative to programs such as GNU screen.

When tmux is started it creates a new session with a single window and displays it on screen. A status line at the bottom of the screen shows information on the current session and is used to enter interactive commands.

A session is a single collection of pseudo terminals under the management of tmux. Each session has one or more windows linked to it. A window occupies the entire screen and may be split into rectangular panes, each of which is a separate pseudo terminal


Resources


Related tags

1849 questions
23
votes
6 answers

Backspace not working in tmux command prompt

I'm having trouble with my Backspace key on the tmux command prompt. The backspace deletes previous characters (as expected) within tmux but not on the tmux command prompt. For example, :lists will not delete the 's' character. Using…
Greg Ruhl
  • 1,060
  • 2
  • 9
  • 27
23
votes
3 answers

Starting a new tmux session and detaching it, all inside a shell script

I am trying to create a new tmux session and execute the command 'vagrant up'. 'Vagrant up' takes more than 3 hours so I want to detach the session so that I can come back later and check the status of that command by attaching back to the same…
Swarup Donepudi
  • 984
  • 1
  • 11
  • 23
23
votes
2 answers

Renaming a window in tmux

I'm using bind-key + , to rename my windows, but as soon as I type a command the name reverts back to the current working directory. Is it possible to make the window name permanent?
Sam Selikoff
  • 12,366
  • 13
  • 58
  • 104
23
votes
2 answers

How to change the position of pane in Tmux

I want to change the postion of a pane such as that I want to change pane 4 to pane 3 after pane 3 exits.
fLOyd
  • 385
  • 1
  • 2
  • 9
23
votes
3 answers

weird space before prompt using tmux on Mac OS Lion

it just happened on my Lion system, I am using zsh with tmux normal in the zsh shell double space in tmux screen am I missing some config in zsh or tmux?
Mike Li
  • 3,336
  • 2
  • 22
  • 27
23
votes
3 answers

mouse wheel isn't scrolling in tmux

It scrolls ok in vim but not in tmux. I followed suggestions like adding set -g history-limit 1000 set -g terminal-overrides 'xterm*:smcup@:rmcup@' setw -g mode-mouse on set-window-option -g mode-mouse on to .tmux.conf but none of them helped All I…
Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
22
votes
3 answers

With $TERM='screen-256color' under tmux, HOME and END keys don't work. Why?

I have tmux set up with $TERM being set to screen-256color correctly. This works fine, and colours are set correctly, however it prevents me from sending HOME and END keys to the terminal, which are instead printed as F\n and H\n. I should add that…
jvc26
  • 6,363
  • 6
  • 46
  • 75
22
votes
2 answers

Tmux: how to restore layout after changing it with select-layout or next-layout?

After starting a new tmux session I usually open multiple panes in the default window, and then resize them manually using the resize-pane commands (through shortcuts of course). After doing some work, I arrive at a point, or have a certain kind of…
Yudle Joza
  • 335
  • 1
  • 2
  • 7
22
votes
3 answers

How to save tmux session to tmuxinator project?

I'm a tmux user and a fan of tmuxinator because it lets me get back to a baseline tmux session setup with ease. However, I find that my setup changes on a regular basis, and editing my tmuxinator setup by hand can become tedious. Is there a way to…
user456584
  • 86,427
  • 15
  • 75
  • 107
22
votes
2 answers

tmux synchronize some but not all panes

In tmux I have a 3 columns and 2 rows layout, the top row is ssh connection to all my server and the bottom is all the same servers running top. I am trying to sync the top row so if I enter a command all three panes copy the same command, I tried…
jazzjazzy
  • 412
  • 3
  • 20
22
votes
2 answers

tmux and Vim: Escape key being seen as ^[ and having long delay

In MacVim and terminal Vim, everything works fine and I have no problems. As soon as I jump into tmux and run Vim there, the escape key starts having a delay of about 1 second and shows up in Vim as ^[. I'll hit the escape key to exit insert mode…
Dustin Martin
  • 1,297
  • 2
  • 12
  • 22
21
votes
1 answer

How do you send keys to a specific window in tmux?

If I have a tmux session called "Test", and inside "Test" I have two windows "Test1" and "Test2", how do I send a command to "Test2"? tmux send-keys -t Test.Test2 "STUFF HERE" won't work. That syntax is for panes only.
power2
  • 929
  • 1
  • 8
  • 16
21
votes
2 answers

How to log out of SSH session without closing tmux

Is there a command I can use to log out of an SSH session where I have tmux running? Currently, if I want to leave tmux running, I either close the entire window of my ssh session without logging out, or I just let the SSH connection die after…
rasen58
  • 4,672
  • 8
  • 39
  • 74
21
votes
3 answers

Tmux: How to configure tmux to display the current working directory of a pane on the status bar?

I am new to tmux and I am trying to edit my tmux.conf file to have the left side of the status bar reflect: [SessionName] [CurrentPane] [CurrentWorkingDirectory] I am able to display the SessionName and CurrentPane. However I can't get to display…
rajames
  • 315
  • 1
  • 2
  • 7
21
votes
2 answers

Share history between panes/windows

Is there a way to share the shell command history between panes/windows in a tmux session?
Devon Ville
  • 2,001
  • 2
  • 19
  • 32