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
28
votes
7 answers

How do you detach a remote screen session in byobu (tmux)?

I am currently in a byobu-tmux session and am ssh'ed into a screen session. How do I detach the remote screen session without detaching byobu-tmux session? Some things to note, I can't run byobu-config because I'm on osx and don't have python-newt…
Russell
  • 2,692
  • 5
  • 23
  • 24
28
votes
1 answer

Rails freezes when searching through tmux output buffer

I'm running Rails 3.2.6 in development mode using tmux. When I scroll through the output buffer of the Rails server (run using rails s) using tmux, the server freezes and doesn't process any requests. When I escape scrollback mode, the server starts…
michaelmwu
  • 343
  • 3
  • 8
27
votes
1 answer

Is it possible to not share history between panes/windows in tmux with zsh?

Until recently I have been using bash with tmux. Bash was behaving as I would expect it to behave, where the history is preserved in each separate pane, and is not shared between panes. However it looks like in zsh the default is for the history in…
Hristo Asenov
  • 439
  • 1
  • 4
  • 8
27
votes
9 answers

Tmux prompt not following normal bash prompt PS1 \W

I did some updating on my Mac and seem to have broken some of my settings. I have the following set in my .bash_profile export PS1="\W $" This is working in my normal bash session to show just the current directory instead of the whole path.…
Paige
  • 665
  • 1
  • 9
  • 14
27
votes
3 answers

How to reorder TMUX sessions?

Is there any way to re-number or swap tmux sessions, just as you can renumber or swap tmux windows? I can't see any command for it and want to easily switch between certain sessions.
mahemoff
  • 44,526
  • 36
  • 160
  • 222
26
votes
4 answers

tmux not re-attaching

I recently switched from using screen to tmux (obtained through macports), as I like the feature set more. However, I can't seem to get tmux to reattach from an alternate location, like I can screen. At home on my mac, I will open up iTerm2, my…
kenny
  • 3,439
  • 3
  • 26
  • 31
25
votes
3 answers

Tmux will not stop auto-renaming windows

A problem I have with Tmux - in the .tmux.conf file I have told him not to rename windows after I set their names but it seems that it is not "respecting my authority" :). My system: OSX El Capitan Tmux 2.1 (installed via Brew) Zshell Here is my…
Alexander Starbuck
  • 1,139
  • 4
  • 18
  • 31
25
votes
3 answers

How to get the active tmux window's name?

I want to write a script that gets the active tmux window's name and uses it as a variable for my vim session. Is this possible? I looked through the tmux manual and didn't see anything.
Jon Trainor
  • 251
  • 3
  • 3
24
votes
2 answers

On first session, tmux says "no current session"

Whenever I open tmux for the first time, it throws the following error. /home/user/.tmux.conf:67: no current window The relevant parts of the conf file are as follows. 52 set-window-option -g window-status-fg "#666666" 53 set-window-option -g…
Haran Rajkumar
  • 2,155
  • 16
  • 24
24
votes
4 answers

How to copy text from tmux window to system clipboard?

I am using Ubuntu 16.04 with tmux 2.1. Mostly I split the screen in two tmux windows split vertically. Frequently I need to copy long pieces of text from tmux window and paste in sublime text/browser. I have a feeling that xsel/xclip could be used…
sherlock
  • 2,397
  • 3
  • 27
  • 44
24
votes
3 answers

tmux no server running on /private/tmp/tmux-502/default

On macOS 10.12.1 tmux 2.3 When run: tmux source-file ~/.tmux.conf Got error: no server running on /private/tmp/tmux-502/default
s_zhang
  • 847
  • 2
  • 8
  • 16
24
votes
4 answers

cygwin + tmux on windows 7 - why won't tmux use the current path?

I have used tmux on linux systems and Mac OSX with no problem. I am aware that as of version 1.9 (I have 1.9a according to tmux -V), you are required to do something along the lines of tmux split-window -c "#{pane_current_path}". That doesn't work,…
toadjamb
  • 934
  • 1
  • 9
  • 14
24
votes
4 answers

Tmux window title keeps renaming

Suddenly, both my screen/tmux started changing my windows' names after every command. They keep changing the name to the value of $PROMPT_COMMAND on every single action on the terminal, even after manually renaming them (by Ctrl+A A on screen or…
user1363214
  • 301
  • 1
  • 2
  • 7
24
votes
3 answers

How to prevent Tmux from filling up the global PATH variable with duplicated paths?

I'm using Mac OS X, iTerm2, zsh and Tmux via Homebrew. When I start a Terminal session in iTerm2, the global PATH variable looks still fine. But when I open up a Tmux session the PATH variable is extended with the same paths it already consisted of.…
Marc
  • 2,900
  • 3
  • 26
  • 40
24
votes
2 answers

Is it possible to find tmux sockets currently in use?

I am trying to get a list of tmux sockets that are currently being used but the best solution I've come up with so far is to check in /tmp/tmux* or TMPDIR. As far as I can tell tmux keeps these sockets around for some amount of time even if no…
Billy Monk
  • 543
  • 5
  • 9