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

0
votes
0answers
15 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 ...
1
vote
0answers
6 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
0answers
23 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
32 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
37 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
26 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
15 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 ...
2
votes
3answers
46 views

How do you update the YUM package manager repositories?

I have a new install of redhat and i'm trying to do a "yum install tmux" but its throwing a no package available error: [root@PSCHQVP20017 ~]# yum install tmux Loaded plugins: product-id, ...
0
votes
0answers
17 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" \; ...
0
votes
0answers
27 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 ...
0
votes
1answer
40 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
40 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 ...
1
vote
2answers
53 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
42 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
28 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
21 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
33 views

“Replace” default shell (bash) with tmux

Background: An co-worker at my company uses tmux all the time, in our spare-time he teached me mastering tmux and vim and I really fall in love with the power of this combination. Currently, I am ...
2
votes
1answer
41 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 ...
0
votes
2answers
29 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
45 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 ...
0
votes
1answer
19 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
24 views

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

is it possible to disable the behavior which cause selecting a pane on opposite side of a tmux window if there is no more pane left in a direction select-pane command was originally triggered at? if ...
3
votes
1answer
75 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 ...
1
vote
0answers
66 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
45 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
35 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
0answers
35 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. ...
1
vote
1answer
71 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
32 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
38 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
22 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
34 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 ...
5
votes
1answer
140 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 ...
5
votes
2answers
57 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 ...
0
votes
1answer
46 views

Set the active tmux tab color

Is it possible to change the background of the active (current) tmux tab? I'm using tmux 1.9 on Ubuntu 15.04. $ tmux -V tmux 1.9 I tried to do: set-option -g pane-active-border-fg red But the ...
0
votes
0answers
54 views

tmux doesn't resize with terminal window

When I resize a terminal window containing a tmux session, tmux doesn't detect this change, but continues to function normally within the old window boundaries. tmux ls shows no other attached ...
1
vote
1answer
52 views

How do I renice my login shell?

I'm on a multi user login-node, a front end node to a large national bioinformatics compute farm, running Linux. Many users misbehave by running computationally intensive jobs on the login-nodes. I ...
1
vote
1answer
40 views

tmux does not render borders properly

I am using tmux on a Gentoo Linux hardened system running kernel 3.18.9. When I run programs that display borders on the terminal such as nmon directly under my terminal or under screen, they display ...
1
vote
2answers
38 views

How to change the “niceness” (CPU priority) of a detached tmux session?

I made a very simple web crawler that writes output to the terminal (stdout), so I generally know how fast it's running. After I detach from tmux and check the MySQL table, it seems the script is ...
0
votes
1answer
30 views

Quick jump to tmux session

Is there actually any way / plugin to be able to quickly jump to a session? Currently I <leader>s to open the session-list page and then I select the one I want. And if I have a session that ...
0
votes
1answer
178 views

How to execute a remote command to an existing ssh session

I'm trying to get basic informations on my local machine from ssh connections. The purpose here is to get the current user, hostname, current working directory in my tmux status bar. I've enabled ...
1
vote
0answers
63 views

How to use vim-slime from within a single tmux session?

I'm trying to integrate ipython and vim through a single tmux session using the popular vim plugin "vim-slime." The problem is that while I can get it to work fine provided that vim is opened in a ...
1
vote
1answer
38 views

bash show-all-if-ambiguous turns on spontaneously

I am using tmux and bash. I find that, at seemingly random intervals, my running shells have show-all-if-ambiguous set to on. This is a significant annoyance to me, since many of my operations are in ...
1
vote
1answer
39 views

Spawn another terminal running tmux (from a terminal running tmux)

I'm currently using urxvt with tmux, run as such: urxvt -e tmux I wish to start up a completely separate instance of urxvt -e tmux (another urxvt, also running tmux) using the terminal. (More ...
0
votes
2answers
85 views

How to set tmux terminfo to screen-256color? [duplicate]

If I do not use tmux my terminal is the following: ~$ echo $TERM xterm If I use tmux by adding the following into .bashr # tmux configuration tmux attach &> /dev/null if [[ ! $TERM =~ ...
1
vote
3answers
292 views

VIM solarized color scheme looks wrong when using tmux

I am trying to use the solarized color scheme in VIM using gnome terminal (Ubuntu). When I run vim without tmux, it looks great, see below: If I add the following commands to my .bashrc # tmux ...
0
votes
1answer
36 views

Auto opening my dev environment with byobu and tmux

When I launch byobu (I'm using tmux), I'd like to open 3 tabs/windows in byobu and launch these commands for each window: 1) cd ~/Dev/backend; vagrant up; vagrant ssh 2) cd ~/Dev/frontend; vagrant ...
1
vote
1answer
246 views

Systemd with rtorrent in tmux

I have been unable to get tmux & rtorrent running with a systemd service file. My rtorrent.service: [Unit] Description=rTorrent Documentation=https://github.com/rakshasa/rtorrent ...
0
votes
0answers
104 views

tmux status bar path customization with sed

On the server I connnect to my home path is like this:/home/junk1/junk2/user. I can use the sed command pwd | sed -e 's|^/\([[:alnum:]]*\)/[[:alpha:]]*/[[:alpha:]]*|/\1|' to shorten the directory path ...
2
votes
0answers
93 views

tmux option `xterm-keys` does not enable control+arrows

I cannot make tmux recognize Ctrl-◄ sequence differently from just a left arrow, and the same for the right arrow too. In my ~/.inputrc, I have mapped these sequences (as issued by 2 different ...