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

0
votes
0answers
16 views

How does one set automatically that vi is the key bindings during copy mode in tmux?

I thought it would be as simple as putting: set-window-option mode-keys vi but its not. I get the error: /Users/my_useranme/.tmux.conf:19: can't establish current session ...
72
votes
6answers
34k views

How does the tmux color palette work?

I'm trying to set something to gray, but can't figure out how. The only bit of info in the man page about colors I can find is: message-bg colour Set status line message background colour, where ...
0
votes
2answers
62 views

Cannot bind prefix-less command exclusively to uppercase letter (C-H vs. C-h)

I have the following prefix-less key bindings in my tmux.conf. bind -n C-J swap-window -t -1 bind -n C-K swap-window -t +1 bind -n C-H select-window -p bind -n C-L select-window -n These bindings ...
0
votes
0answers
5 views

how to hide the right status in tmux

How do I hide the right status in tmux? It appears in the bottom bar where windows appear, all the way right justified. I have tried set-option status-right "" and set-option status-right-length 0 in ...
0
votes
1answer
31 views

tmux configuration to rename tab name to basename of working directory

I have this setting, which is supposed to rename the current window to my current directory by pressing <prefix>. bind-key . run -b "tmux rename-window $(basename #{pane_current_path})" For ...
641
votes
8answers
271k views

How do I scroll in tmux?

I just started using tmux, and I really like it, but I need to be able to scroll within the buffers/panes/windows I have open. I don't care if it works with the mouse or not. When I search the tmux ...
0
votes
2answers
42 views

tmux does not trigger when placed in rc.local

I want to start a tmux on boot on a raspberry pi - 2. I have written a session.sh file and I have places it in ~/bin/ file which is in the home directory. This ~/bin/ is also included in the $PATH and ...
0
votes
1answer
1k views

cannot type anything into tmux (some keys have weird behaviour)

I'm using tmux via wemux. Sometimes the input seems to be stuck and only very few things are working: can not enter any characters or numbers can still see the output of the program that's running ...
0
votes
0answers
9 views

tmux - how to switch through (more than two) recently visited windows?

Is there a tmux command or shortcut I can use to switch to recently visited windows? I can switch between the two latest windows with last-window, but how can I continue to switch to the previously ...
159
votes
7answers
65k views

Scroll shell output with mouse in tmux

Mouse scrolling doesn't work in tmux the way it works when I run shell without tmux (in Gnome Terminal). It seems tmux sends mouse scroll events as if I pressed Up/Down keys. But I want it to scroll ...
0
votes
1answer
17 views

How to keep terminal window title in sync with tmux window

I am using a program called "Timing" to track my time. Timing uses the name of the current window in iTerm for categorization purposes. I'd like to set the current title of iTerm to match the name of ...
0
votes
0answers
18 views

Cannot make function key bindings (F1-F12) to work in byobu with tmux backend

I use Ubuntu 14.04 and have the latest version of byobu installed via apt-get. It has always worked flawlessly but started showing some weird behaviour just recently with no obvious reason. I use it ...
0
votes
0answers
10 views

How to make tmux kill session as normal on terminal exit

So normally when you have an X terminal and you exit the window, the terminal dies and HUP is sent to all processes that have that terminal as controlling terminal, their usual response is to exit ...
0
votes
0answers
4 views

How to get Current scrollback position in tmux copy mode

Is there any existing way to get the current position in the scrollback buffer when I have scrolled back up in copy mode? e.g.: I entered copy mode, scrolled back up quite a way up. and now the copy ...
1
vote
0answers
22 views

tmux always starts with `/bin/bash` instead of `/usr/local/bin/bash`

No matter what I do, tmux will always use /bin/bash as its login shell. I have set $SHELL to /usr/local/bin/bash which should work according to the man page of tmux. And $SHELL is definitely exported,...
0
votes
1answer
13 views

how to bind `<prefix>+,` to F5?

I want that F5 be an alias to <prefix>+, which is the rename window action in tmux. I tried: bind -n F5 rename-window but tmux is angry when it reads the conf file. how to achieve what I ...
60
votes
19answers
39k views

What's the least conflicting prefix/escape sequence for screen or tmux?

Screen goes with Ctrl+A. tmux on the other hand—as developed within screen—uses Ctrl+B. Both keystrokes, however, are also used in editors, shells, etc. Thus choosing either one degrades ...
28
votes
5answers
7k views

Is there any way to prevent tmux freezing when lots of text is output to the terminal?

In a tmux session inside xterm when a programs generates lots of ouput (like a cat very_long_file the whole session in frozen for a while. Even if I press Ctrl-C nothing is interrupted. Presumably ...
22
votes
5answers
5k views

tmux slow to interrupt process with Ctrl-C

If I run a command with a lot of output in tmux, but decide to cancel it with Ctrl-C, there's a 10-15 second lag before it stops. However, if I do the same thing outside of tmux, it stops immediately. ...
5
votes
3answers
153 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?
158
votes
2answers
49k views

How do I rename a session in tmux?

When I first started using tmux, I didn't give my first session a name. Then, as I started creating different sessions for different tasks (work, play, etc), I started naming my sessions. Now I have ...
0
votes
1answer
11 views

tmux how to force kill-session

I use tmux on mac os x 10.11.5 but suddenly it stopped working correctly. When i type tmux it does keep attaching to my grouped tmux session "ruby" instead of creating a new one. $ tmux ls ruby: 2 ...
1
vote
0answers
15 views

Ctrl-b does not work

With Bash now being available on Windows I tried using tmux, but Ctrl + b + [other key]` does not work for me or any of the other key combinations. As far as I can tell Windows is not overriding the ...
15
votes
5answers
17k views

bind tmux prefix to OS X cmd key (or any other binding)

I'm used to iTerm2 (or Terminal.app for this case) on OS X. But I want to move to use tmux (or screen, but the problem is similar to both apps). So my idea is to have a single iTerm tab with a tmux ...
1
vote
0answers
30 views

Create tmux session in seperate shells

I'd like to use tmux sessions to manage windows / panes in different shells. What I've noticed is that tmux will always use the shell from which it was first launched for all subsequent sessions ...
12
votes
8answers
15k views

rename tmux window name to prompt_command, ps1 or remote ssh hostname?

I would love to be able to have my tmux window title automatically renamed to prompt_command, ps1 or just the hostname of a machine I ssh to. having 9 windows opened labeled "ssh" is really useless. ...
2
votes
1answer
602 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
214 views

sz and rz fail to transform files in tmux?

I use xshell to SSH to a Linux remote server—running Red Hat Enterprise Linux AS release 4 (Nahant Update 3)—without root. There aren’t any problems to use sz, rz to transform my files until I start ...
1
vote
0answers
14 views

Bash&TMUX - Continue after error

I want to write a bash script which opens new window in certain tmux session, runs another script in it and then closes. The problem is, if I launch two instances of the script, I want the script to ...
5
votes
2answers
1k views

Tmux doesn't respond to scroll in OS X Yosemite Terminal

Recently, I updated to OS X Yosemite and was delighted to find out Apple has added mouse support to their Terminal app. This works great in a standard Terminal window scrolling through my history and ...
0
votes
1answer
90 views

Scrolling on Mac with Tmux and iTerm

I'm using iTerm 2.1.4 and Tmux on OS X Yosemite. I'd like to be able to scroll my iTerm windows up and down but I'm not sure what controls scrolling. Does tmux control scrolling when I use it with ...
0
votes
0answers
48 views

Tmux 2.2 won't let me scroll while in copy mode (with mouse)

In Tmux 2.0, I could scroll up into my history buffer, then start selecting text (using left mouse button) and scroll with my mouse wheel to select several pages of text. While not always efficient (e....
1
vote
0answers
20 views

Remapping Ctrl + I with keysym in rxvt

I'm trying to remap Ctrl + I to be captured as something else than tab, so I can use it as a shortcut in tmux. However I cannot get to work. As a test case I tried to get Ctrl + I to output Ctrl + W ...
0
votes
0answers
14 views

Tmux window crashes

I have a tmux window on my server. Its been up for almost 20 days and I have 6 shells up on tmux window. All of sudden it crashed and tmux ls don't show the tmux window anymore and I am not able to ...
2
votes
3answers
2k views

Adding Git repo and branch to Tmux status line

I have found a Tmux configuration file that shows how to add the Git branch to the Tmux status line, however It just shows [[ branch ]] no matter if I am in a Git repo or not. I am not sure if this ...
0
votes
0answers
14 views

selecting word in tmux copy mode

I have this in my .tmux.conf (on Debian testing): set-option -g status-keys vi set-window-option -g mode-keys vi bind-key -t vi-copy 'v' begin-selection bind-key -t vi-copy 'y' copy-selection ...
21
votes
2answers
12k views

How to auto resize panes in tmux?

In Vim, with C-W = the windows are auto resized to the same height. In tmux, with :resize-pane -U 10 I can increment the height of tmux pane in 10. How I can auto resize the panes to the ...
1
vote
1answer
399 views

tmux 2.0 on OSX: ~/.tmux.conf doesn't work

I've installed tmux 2.0 from homebrew on OSX 10.10.5 By default it does not create a config, but I've researched that there should be ~/.tmux.conf file so I've created it myself I'm using iTerm2. The ...
0
votes
1answer
39 views

Scripting with tmux?

Can I script several bash/sh instructions to open and run in separate tmux panes? I have about 5 or so different commands that need to be executed simultaneously or consecutively. I usually type ...
3
votes
0answers
23 views

tmux text cut off by split line using iTerm2

I am using zsh, iTerm2, and tmux. When I split the window into multiple panes the line covers up a little bit of the text. Here's a picture of what it looks like: It works fine using terminal, so I ...
53
votes
2answers
12k views

vim freezes inside tmux

I'm using split panes in tmux - one being vim, other shell. Sometimes, around once a day, vim freezes. I can move between panes, perform any tmux commands, just vim doesn't react to anything. This ...
0
votes
0answers
21 views

Tmux on Mac: How to bind “option” key?

I am adding this to my ~/.tmux.conf file and running tmux source ~/.tmux.conf but it's not working set -g history-limit 100000 bind-key -n M-n next-window <--------------------- does not work ...
2
votes
1answer
27 views

Tmux - Detach client fails if using bash startup script

Typically, I use a bash script to create my tmux session (split panes, set PWD, call commands, etc.). This works great, except if I try to run tmux detach-client. It will fail to detach, instead just ...
2
votes
3answers
943 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.
0
votes
0answers
12 views

tmux - change status-bg when in an ssh session window

Is it possible to have a different status-bg color when in an ssh session? Say I have the default green one, but would like it to turn red when in a ssh session. Should work when switching windows ...
0
votes
0answers
10 views

neovim not schemecolor on tmux multiplexor

I dont know why I dont have schemecolor when I use tmux on my neovim, here something of data of my console: gnome-terminal tmux 1.9 neovim this look so: I try a lot of this possible solutions but ...
0
votes
1answer
28 views

Tmux keybinding to swap pane left or right

I'm aware that :swap-pane -U and :swap-pane -D will swap panes up or down, but I'd like a keybinding to swap panes left and right. The only way I can think of to do this would be to first determine ...
4
votes
1answer
759 views

Run command in detached tmux session and log console output to file

I can run a command in a detached tmux session with: tmux new -d 'while true; do date; sleep 1; done' I can run a command in an attached tmux session and log the console output with: tmux new '...
3
votes
3answers
173 views

tmux configuration stanzas based on Tmux version

This question is loosely related to this one. So I am using a range of Tmux versions between 1.5 and 2.2 on various operating systems (and Linux distros). My ~/.tmux.conf which had been tailored to ...
1
vote
0answers
86 views

xterm translations: sending multiple keys

I'd like to utilize the multimedia keys on my keyboard in my xterm/tmux. I'd like to map the XF86Launch8 to the keys C-a F1 (ctrl-a being the tmux prefix key, the press F1, which is mapped in tmux to ...