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.

learn more… | top users | synonyms

3
votes
0answers
181 views

tmux causing bold fonts in vim

I have installed tmux with vim, using the solarized colorscheme and airline plugin. All is good until I start tmux, where all the font turns bold and the airline status bar is looking weird. I have ...
0
votes
1answer
31 views

Additonal layer of abstraction for GNU screen region management?

Here is my use case: I have maybe 10 or so windows open in screen. I want to be able to split my terminal into regions and assign windows to regions. So far, so good. However, I want to be able to ...
4
votes
1answer
117 views

Format tmux's pane_current_path

I'm trying to set my tmux window's title to be the current directory that I am in. Now pane_current_path is perfect for this, but it prints the full path in my machine. Is it possible to run ...
4
votes
1answer
94 views

Tmux and dim-ed colours in Terminal.app on MacOS

The problem On my Mac (10.11) Tmux does not show dim-ed colours properly, and this causes annoyance. In the following picture, the commit author's name is supposed to be represented in dim white. ...
3
votes
2answers
112 views

Is it possible to scroll faster than PgUp/PgDown in tmux?

I have approximately 400k lines of output to scroll in tmux. How can I speed up the pace of scroll in copy mode? Alternatively, how can I transfer all the (already generated) output content to a file?
2
votes
1answer
179 views

Tmux 2.0 “pane_current_path” not working on CentOS

Tmux 2.0 on my CentOS always goes to the home directory when creating new pane or window. I have added these lines in .tmux.conf but still not working after restarting tmux: bind '"' split-window -c "...
0
votes
0answers
322 views

PuTTY and tmux: default resize-pane bindings do not work

I'm using PuTTY 0.65 on multiple Windows 10 systems to connect to tmux 2.0 on CentOS 7 and FreeBSD 9, using the default key bindings in tmux. Pasted from C-? shows: bind-key -r M-Up resize-pane -U ...
0
votes
1answer
50 views

tmux error on debian

I install tmux via apt-get. When I type tmux, it acts like first $ clear and then open another bash, I can not see any render borders as usual nor to split or create any windows or panes. Then I type ...
1
vote
1answer
102 views

can I use ssh to send build command for android building?

I'm new in Linux, but learning bits by bits.. So please give explanation too, instead of only the answer, to help me understand about why and how. Currently I want to build an android rom with ...
0
votes
1answer
47 views

tmux configuration

I'm trying to change the tmux colors on a computer I haven't visited in a while. In tmux man page I read that tmux will look for a /etc/tmux.conf and, if not found, would go to ~/.tmux.conf. Since the ...
1
vote
1answer
329 views

remapping Caps Lock to Ctrl key in tmux

I'm a Linux beginner and using tmux 2.0 on CentOS 6.7(without X). How can I use Caps Lock instead of Ctrl in tmux?
1
vote
1answer
126 views

Run an existent tmux session at SSH login or create if not exist

I want to open a tmux session every time I login through SSH to my server. If the session exist, connect to it, if not, create and connect to it. I think I need edit ~/.bashrc file to do this, but I ...
1
vote
0answers
15 views

How do I terminate Aptitude safely

I have a TMux session with Aptitude open. The Aptitude process has been "killed" several times with STOP/CONT. Now it doesn't react to the Q key. Instead a 'q' is printed on the top-left corner of the ...
2
votes
1answer
99 views

tmux/zsh messes up pasted text

When I paste text into a tmux shell running zsh by select it with a mouse and then hitting 3rd mouse button, it prefixes the text with "200~" and adds a "~" at the end. For example, if I have the ...
3
votes
0answers
106 views

Monitor exit code in tmux

Is there a way to update tmux window attributes based on command exit status? Similar to activity monitoring, I would like the title to change color when a command exits, say, green for success and ...
3
votes
0answers
58 views

Jump to last prompt in terminal (or tmux)

In a terminal, are there any shortcuts to jump to a previous/next prompt? Scrolling up and trying to find the start of a log slows down my workflow. I'm using iTerm on OSX, but this should be ...
0
votes
0answers
41 views

How do I go to the last line where I entered text in tmux?

I often use tmux to scroll through error messages for various reasons. Usually I use the ninja command to build my projects so when I hit compilation errors ctrl+b [ ninja quickly takes me back to ...
2
votes
0answers
49 views

Is it possible to style tmux on a per-session basis?

I set up 2 tmux sessions to work on different parts of a project (switching back and forth frequently). As their layout are pretty similar, I would like to set different status-bar color to help me ...
3
votes
1answer
98 views

In tmux, is it possible to list all panes in all windows?

Say, I got two windows, Window 1 contains 2 pane (1, 2), Window 2 contains 3 panes(1,2,3), and I'm in pane 1 in Window 1, and I want to jump directly into the pane 2 in Window 2, PREFIX w which is ...
0
votes
1answer
156 views

Running script through bashrc causes nesting of tmux panes

I use the following tmux code in a script file tmux-dev.sh and add it to bash using bash /home/rohit/tmux-dev.sh : tmux new-session -d tmux split-window -h tmux split-window -v tmux -2 attach-session ...
1
vote
2answers
130 views

Execute command inside another command

I'm trying to record my tmux session. I've got an alias record-session which executes command from ttygif ttyrec ~/ttygif/files/last-session. As far as I understand ttygif starts new terminal instance ...
3
votes
1answer
63 views

How do you reset my tmux display? Its stuck in a smaller window

for some reason my tmux is stuck in a smaller box. what is the reason for this? And how can I reset my display? Yes i know i can just kill the pane, but i have a bunch of sessions i want to keep. ...
1
vote
1answer
91 views

Killing grouped sessions on client detach

I'm using the grouped session feature of tmux to attach to a single session from multiple clients with different screen sizes. Therefore I automatically perform a tmux new-session -t <session_name&...
2
votes
3answers
3k views

How do you update the YUM package manager repositories?

I have a new install of Red Hat and I'm trying to do a "yum install tmux" but it is throwing a no package available error: [root@PSCHQVP20017 ~]# yum install tmux Loaded plugins: product-id, refresh-...
0
votes
0answers
63 views

tmux: getting 'lock-command' to execute multiple commands

With tmux, is it possible to get multiple commands to be executed after idle time with lock-command? Example: I can bind multiple commands to a key like this: bind R display-message "Sleeping" \; ...
1
vote
0answers
163 views

Binding mouse buttons in tmux

Has anyone managed to bind mouse buttons to custom functions in tmux? According to the manual this should work: bind-key -n MouseDown2Pane paste-buffer This should let me take text that was ...
2
votes
1answer
1k views

tmux force resize window

I usually connect to remote linux servers from a specific windows server (W1). On the windows side, I use putty and on the linux side, I start tmux. Occasionally, I have to use a Different windows ...
2
votes
3answers
151 views

How do I remap newline and carriage return regardless of the terminal used to connect?

All my configuration is stored in my github account (https://github.com/mnebuerquo/dotfiles) so I can just clone my repo and run my install script and my home is configured to use all my tools. I ...
2
votes
3answers
627 views

Trailing spaces when copying from console

It's this annoying behavior I've been experiencing here and there occasionally: when you select text with mouse in console (that is, copy it), paste it, and realize you've got extra spaces at the end ...
0
votes
2answers
102 views

Tmux bindings using Ctrl+comma

In OSX, on iTerm2, I can map Ctrl/Cmd/Opt+, or Ctrl/Cmd/Opt+. to hex codes that go to next or previous tmux windows. How can I use Super/Meta/Ctrl and comma/dot key presses on Linux to produce the ...
1
vote
2answers
87 views

How to comment in a windows.tmux file

My ~/.byobu/windows.tmux file is getting a bit complex and I would like to document it with comments. How to insert comments in Byobu's windows.tmux file? Using # as seen below results in a unknown ...
0
votes
1answer
29 views

Determine the tmux session a shell session belongs to?

tmux provides a number of commands in the shell such as rename-session which operate on the session that the invoking shell belongs to. It also provides commands like list-clients which list out the ...
0
votes
2answers
107 views

“Replace” default shell (bash) with tmux

Background: An co-worker at my company uses tmux all the time. In our spare-time he taught me enough to master tmux and vim. I have really falled in love with the power of this combination. Currently,...
3
votes
1answer
255 views

How to get clipboard support on a Linux server without X11

I have a virtual Linux development environment running under VirtualBox and Vagrant. I use tmux and vim to setup multiple open vim instances. I'd like to be able to copy and paste between those ...
1
vote
2answers
39 views

“Quit and restart” control code?

I find myself frequently (after making some change to source) "Ctrl+C;↑ ing" to restart the program with changes. Is there a way to do this more quickly, without wrapping the program in a loop ...
0
votes
0answers
257 views

Urxvt and tmux - set window title

When I use tmux from urxvt, window title is not updated. Normally when I use just urxvt, window title is updated every time I change directory and it is in form of "$USER@$HOST:$PWD", but when I run ...
1
vote
1answer
99 views

Bind tmux prefix to section symbol §

I usually use the backtick key as my prefix, but this keyboard has the section/stanza symbol § where the backtick usually (at least, for me in the UK) is. If I bind to this key, quoted or unquoted, ...
1
vote
0answers
60 views

tmux select-pane -LDUR command - disable auto-cycling behavior

Is it possible to disable the behavior which causes selecting a pane on opposite side of a tmux window if there are no more panes left in a direction select-pane command was originally triggered at? ...
3
votes
1answer
490 views

Sending commands to a window in tmux

I want to run a minecraft server in tmux and send commands to the server window from a bash script. Below is my script: #!/bin/bash echo "Starting vanilla server..." sleep 2 # Start a new session ...
6
votes
1answer
736 views

How to preview image in tmux in iTerm2

iTerm2 is able to display images within the terminal. I'm using the imgcat script and it works fine, but when I'm inside of tmux it does nothing. Is there a way to be able to preview images inline in ...
2
votes
1answer
190 views

Can we broadcast in tmux

Now we know that we can do a broadcast all or to a specific group in terminator and execute commands simultaneously on every window. Can we do the same inside a tmux session?
1
vote
0answers
102 views

Can multiple users issue commands simultaneously using tmate with seperate cursors in the same session?

I've just installed tmate and tmate-slave on a VM and am wondering if when more than one user is part of the session, can tmate allow both users to work in synchronous mode, meaning each has their own ...
0
votes
1answer
52 views

tmux refuses to split

I'm fairly new to tmux. I tried to google a solution but no luck. My problem is that after I (sucessfully) split my window vertically for the first time, the second attempt to split the window fails. ...
2
votes
2answers
1k views

Configure tmux to use zsh

Right now I have my iTerm session configured to use zsh (/usr/local/bin/zsh), but I'm trying to configure tmux to use zsh as well, instead of /bin/bash/, which it's currently defaulting to. So far ...
4
votes
1answer
136 views

tmux key binding to pipe pane contents to program

I'm trying to get this key binding to work to pipe the contents of the current pane to a program of my choosing: bind P command-prompt -I "vim -" \ "capture-pane -eJ -S - -E -; \ set-buffer -...
1
vote
1answer
156 views

Tmux displaying quotes/messages on startup

I have installed tmux on Linux Mint Debian Edition and every time I start it or create a new pane/window it displays a random quote or message above the prompt. It's driving me crazy and I cannot seem ...
2
votes
0answers
42 views

Is it possible to share the tmux buffer across sessions?

I typically have 2-3 tmux sessions running on my server, and almost always have 2 up at a time, 1 on each monitor. Occasionally I want to take something I copied from one session and paste it into ...
0
votes
1answer
311 views

How to upgrade a package which has a newer version than the repository?

I've installed tmux from apt-get. I checked the version is 1.8. But when I directly go to tmux official site, I see the latest version is 2.0. How can I upgrade to 2.0? sudo apt-get install --only-...
5
votes
1answer
339 views

How can I make tmux tell bash to display the *logical* version of the current directory in newly opened windows?

Background I'm using tmux 2.0, Ubuntu 14.04.2 LTS in VirtualBox. In order to make tmux open new windows with the same path as the current window I added this line to my ~/.tmux.conf file: bind c ...
6
votes
2answers
248 views

Tmux - Get pane # of each pane in a window from a script?

Is there a way to find out the pane index of a particular pane in Tmux? I know I can run something like: tmux display-message -p "#{pane_index}" but that only works on the active pane. I want ...