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
45
votes
3 answers

give a hint when press prefix key in tmux

When I press the prefix-key Ctrl-b tmux doesn't give me a hint that it has been pressed. Sometimes I can not remember whether I have already pressed it or not. Can I set up a hint like highlight/change color or show some special symbol in the status…
worldterminator
  • 2,968
  • 6
  • 33
  • 52
43
votes
9 answers

tmux: hangs and do not load, and do not respond to any option command

I have installed tmux from source on my localspace in Fedora. It was working nicely so far. But suddenly can not run it anymore, when run tmux, it just halts. Tried different command options like ls-sessions, none works. Killed all the processes of…
memimo
  • 501
  • 1
  • 4
  • 8
43
votes
1 answer

What are the differences between set -g, set -ga and set-option -g in a .tmux.conf file?

I'm new to tmux and trying to understand it's configuration. I've started with looking at some pre-existing .tmux.conf files and whatever documentation I can find but it still leaves me wondering about the flags. I've seen the following so far: A…
hrokr
  • 3,276
  • 3
  • 21
  • 39
43
votes
3 answers

tmux open terminal failed: not a terminal

I have a shell script that is enabled as service to start multiple shell scripts e.g. service started script -> script1, script2 ,script3 script1 should open a program in a tmux window, and it does work just fine if I manually start the script via…
STiGYFishh
  • 708
  • 3
  • 8
  • 16
43
votes
7 answers

TMUX setting environment variables for sessions

I work in a situation where I have multiple projects and within each are many scripts that make use of environment variables set to values specific to that project. What i'd like to do is use a separate tmux session for each project and set the…
user1223028
  • 523
  • 1
  • 4
  • 8
42
votes
1 answer

How do I start tmux with my current environment?

Or at least the part of it, that makes sense. More specifically I have some environment variables, that have been exported by running a script, to create an adequate environment for the task at hand. When I run tmux these variables are nowhere to be…
Phluks
  • 906
  • 1
  • 9
  • 14
42
votes
2 answers

How can I move a window to another session in tmux?

In tmux, how can I move a window from a session to another session? ex. move window:4 in session [0] to session [4] .
黃郁暉
  • 437
  • 1
  • 4
  • 7
42
votes
3 answers

Clipboard failure in tmux + vim after upgrading to MacOS Sierra

Yesterday, I upgraded to MacOS Sierra and it broke my clipboard functionality in my tmux + neovim setup. Here is the behavior: I can use the standard ctrl+c, ctrl+p to copy/paste between system <-> vim I can yank/paste between two VIM instances…
doremi
  • 14,921
  • 30
  • 93
  • 148
39
votes
4 answers

Tmux borders are drawn with dashed lines; how can I change them to continuous lines?

I'm using Mac OS X Lion, Terminal.app and Tmux version 1.6. I get a dashed line as a window border instead of a continuous line that I get when I ssh into a Debian virtual machine on the same computer using the same terminal. How can I change the…
Jason Coffin
  • 391
  • 1
  • 4
  • 4
39
votes
4 answers

vim in tmux background color changes when paging

I am using vim in 256 color mode on Solaris (connected via Putty on Windows). Everything looks great and works fine outside of tmux, but within tmux the background color changes periodically when paging/scrolling through a file. Here is how it's…
moshen
  • 1,114
  • 2
  • 11
  • 18
39
votes
8 answers

Can I use double click to select and copy in tmux?

I am learning to use tmux, I found when I in a tmux window, double-click to select and copy function did not work any more. Can I use double-click to select and copy just as in iterm2? I have googled for some time, but did not find an short and…
WKPlus
  • 6,955
  • 2
  • 35
  • 53
39
votes
2 answers

Ubuntu - change tmux 1.8 to tmux-next 1.9

After I tried install few plugins for tmux I found that my tmux version is 1.8. Following steps from this answer I install tmux 2.1: Ugrade tmux from 1.8 to 1.9 on Ubuntu 14.04 (I didn't found tmux=1.9a-1~ppa1~t and instead install tmux-next and…
Sonique
  • 6,670
  • 6
  • 41
  • 60
38
votes
7 answers

How to start tmux with several windows in different directories?

I want to use a script to open a tmux session with 6 windows, each in a different directory. I started with a script I found and tried this first: tmux new-session -s xyz -n etc -d 'cd /etc' tmux new-window -t xyz:1 -n var 'cd /var/log' But I…
Michael Härtl
  • 8,428
  • 5
  • 35
  • 62
38
votes
4 answers

How do I make tmux reorder windows when one is deleted?

I have three windows: 1:zsh 2:vim* 3:htop When I delete the current window (#2), I have these windows left: 1:zsh 3:htop How can I make it so that it automatically renumbers them as 1:zsh 2:htop If I recall correctly, this is the default behavior…
Jimmy Zelinskie
  • 1,450
  • 2
  • 12
  • 12
38
votes
3 answers

Change tmux default to zsh

When tmux opens, I would like it to use zsh instead of bash by default. How would I accomplish this?
user3549902
  • 383
  • 1
  • 3
  • 5