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
1answer
4 views

tmux icon plugins not displaying in status bar

I've installed TPM and am running it last and so on but none of the icons from the icon plugins are displaying correctly, nor do several other things I've added, I don't know what's going on I've ...
0
votes
2answers
36 views

apt-get version of tmux is old

I used apt-get to install tmux and after doing so tmux -V returned 1.6, which is an older version. According to the tmux web site, the current version is 2.2. This is a problem because I would like to ...
1
vote
1answer
13 views

How do I set tmux's window size in a session started by cron?

In my crontab, I reference a shell script, print-size, that contains the following lines. #!/bin/sh tmux new-session -t check-size -d tmux send-keys -t check-size 'echo $COLUMNS $LINES' C-m When ...
1
vote
1answer
40 views

How to get the F1-F4 keys to behave normally in tmux

In my normal terminal, F1-F4 keys produce ^[[11~^[[12~^[[13~^[[14~, but in tmux I get ^[OP^[OQ^[OR^[OS. I'd like them to behave the same in tmux so I don't have muck around with bindings for programs ...
4
votes
2answers
120 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
1answer
196 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
21 views

Stop scrolling when the mousewheel stops

I have a mouse with a button that toggles the friction on the mouse wheel. This way I can scroll really fast, if I want to. In tmux however, when I use the "frictionless" mode, it will continue ...
3
votes
1answer
44 views

Cannot trigger tmux script on boot

I have a tmux triggering script as mentioned below, running on Raspbian Wheezy 7.10: Step 1 #!/bin/bash # this script is called "sess" tmux new-session -d -s sess1 'sudo /home/pi/bin/myscript.py' ...
0
votes
2answers
40 views

How do I get a default tmux configuration file?

I installed tmux via apt-get and there is no .tmux.conf file in my home directory, even after I run tmux. I have been trying to follow a tmux tutorial, but the first part involves modifying this file,...
0
votes
0answers
22 views

tmux zoom (z) not working for me

I am using tmux 1.6 with a Ctrl-a prefix, but Ctrl-a z does not zoom for me. The prefix does work otherwise. So, for example, Ctrl- moves to the pane on the right, etc. How can I debug this problem?
2
votes
1answer
22 views

Hide activity events at startup

I wrote a script to start a tmux session with specific windows and panes. However, because I set the options visual-activity and monitor-activity, I see the text "Activity in window #" everytime I ...
5
votes
1answer
279 views

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

I cannot make tmux recognize Ctrl-Left-arrow 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 ...
0
votes
1answer
26 views

How to execute TMUX commands on a remote server when I have TMUX running locally too? [duplicate]

I am not sure if this is possible but I have a remote server running tmux and I frequently ssh into that server from a computer that is also running tmux. The issue is that the tmux.conf filed are ...
2
votes
2answers
7k views

How do I increase my iterm (tmux) window scrollback (not the line scrollback)

When I want to scroll back, i.e. with my mouse (or with PageUp) I can only go up about 43 pages (about 2000 lines). Can I increase that? I have my terminal preference -> "Scrollback Lines" set to ...
1
vote
2answers
48 views

tmux on remote machine not getting correct prefix + arrow keys

I am connecting from a windows machine to a remote machine using MobaXterm, and attach to a tmux session. Some key are not getting sent correctly, for example prefix + arrow keys just prints {A,B,C,D}...
155
votes
6answers
48k views

Moving tmux pane to window

How do I move an existing pane into another window in tmux when I have multiple windows, and vice versa? I'm coming from screen, where I can switch to the pane and then switch windows until I get to ...
2
votes
1answer
25 views

How to automatically load tmux at login, but not if already inside tmux?

I'm a linux noob and recently started using tmux. I found I can attach-or-create a tmux session by using: tmux new-session -A -s main I was hoping to put this into .profile so that I automatically ...
1
vote
1answer
4k views

Terminal colors for Vim Airline and Tmux Tmuxline

When using Vim on its own with Vundle and Airline the theme appears normally: When I have loaded it up in Tmuxline, the theme uses different colors and even Vim looks different: Here's my Tmux ...
0
votes
1answer
26 views

tmux how to bind a key to enter in VI mode and search backwards?

I think that my routine, in Tmux, of ctrl+b [ and then ? to enter in VI mode and then start to search backwards is a little cumbersome and I wonder if it's possible to map a key combination, like ...
34
votes
2answers
26k views

tmux bottom bar color change

I recently started to use tmux and like it much, but its green bottom bar is a bit distracting, is there a way to change its color? or a way to hide it?
3
votes
2answers
1k views

What is tmux's “message-command”?

I've been trying to figure out how to change the background color of the command prompt in tmux's copy mode. It defaults to black on orange, at least on my setup. I changed the color of the command ...
1
vote
1answer
40 views

tmux new-window — wait until session is up?

I am doing the following thing (this is just an example, commads are more complex): xterm -fa "Inconsolata" -e tmux new-session -s alpha & disown %% tmux new-window -t alpha bash tmux new-window ...
6
votes
2answers
832 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 ...
17
votes
5answers
15k views

How do I cycle through panes inside a window in tmux like in screen?

I thought Tmux - move window to pane was the same question but it doesn't seem to be. Coming from using GNU screen regularly, I'm looking for tmux to do the same things. On of the things I do ...
1
vote
3answers
45 views

using multiple terminal x-windows with one tmux session

I usually work with 2 monitors that are not quite vertically aligned (I have a benchtop power supply under my left monitor), but I want to have 4 terminal windows side-by side on my screens which I ...
0
votes
0answers
92 views

Run console printing command after tmux starts up

I'm starting tmux from zsh with the window split into two panels. The only issue I'm having is screenfetch starts up and prints to both windows. Ideally I only want it printing on the left window. I ...
0
votes
1answer
280 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
0answers
14 views

tmux send-key x3270 functionality

I am trying to use: # start x3270 session tmux new-session -d -n x3270 'x3270 localhost 3270' # sleep 3s echo "send first logon" tmux send-keys -t x3270 "logon" Enter This is not working... Is ...
14
votes
4answers
1k views

Escape sequences in output of script called from ncurses application

I'm currently running mcabber as my Jabber client (which uses ncurses) in a tmux session on my homeserver. Locally i run iTerm2 as a terminal emulator, which supports the triggering of growl ...
3
votes
1answer
68 views

tmux script to launch several commands

How can I write the following in a bash script? tmux # Start tmux session. compass watch /path/to/project1/compass/ # Run the first process. Ctrl + B, " # Split the pane. compass watch /path/to/...
3
votes
2answers
995 views

tmux unable to start a new session? “1;2c”

Introduction I just installed tmux onto my CentOS 7 machine, but I have encountered a bewildering issue. Whenever I try to attempt to start up a session using tmux or tmux new -s session-name, it ...
0
votes
0answers
19 views

how to get a “parent-child” relationship with tmux panes and windows

Essentially I'm trying to mimic fork when I split a window or create a new one from an existing tmux session. For example lets say you enter a shell in gnome-terminal and then launch a new gnome-...
23
votes
3answers
5k views

How do you hide a pane?

I have 3 panes in my tmux window: -------------------------- | | 2 | | | | | 1 |----------| | | 3 | | | | ----...
81
votes
14answers
55k views

Getting tmux to copy a buffer to the clipboard

I am trying to figure out a decent way to copy what I have in a tmux buffer into my clipboard. I have tried a couple of different things like bind-key p select-pane -t 2 \; split-window 'xsel -i -b'...
7
votes
2answers
199 views

Problem using Ctrl+Arrow keys in Vim when using Byobu with tmux

In Vim, I had set the Ctrl+Arrow keys to skip words. This works just fine when running Vim inside the gnome-terminal. However, when using byobu (tmux), it shows weird behavior : it deletes ...
3
votes
0answers
63 views

Change tmux pane title to current folder name

By default, tmux sets the current pane title as the active command (ex:vim), even if allow-rename is off. I want to change it to current folder name (basename $PWD). Note that I do not want to ...
17
votes
4answers
12k views

Use system clipboard in vi-copy mode in tmux

I'm running tmux 1.6 and I'm trying to configure it to use vi-style keybindings as well as use the system clipboard when copying in interactive mode: set-window-option -g mode-keys vi bind-key -t vi-...
0
votes
0answers
35 views

tmux ctrl-k to erase the line from cursor to end of line

Outside tmux I use ctrl-k to erase the line in my terminal with zsh from the cursor to end of line. When I'm in tmux it doesn't work. Below is my tmux.conf: set-option -g prefix C-a # From: https://...
0
votes
0answers
21 views

How can I re-attach to the first detached tmux session or create a new one if none exists when connecting via SSH?

For GNU screen I've been using this alias to achieve this behavior: alias ssh12='ssh -X me@192.168.2.12 -t "screen -R || screen -RR"' Now that I've switched to tmux I am wondering how to achieve ...
25
votes
9answers
22k views

How can I set my default shell to start up tmux

I would like my default bash shell to go straight into tmux instead of my always having to type tmux every time.
0
votes
0answers
25 views

Vim goes haywire inside tmux

I am using vim-airline and have enabled tab line. I have set TERM=screen-256color in .tmux.conf and I can see that being printed in and out of tmux. Vim with airline works perfectly fine outside of ...
0
votes
0answers
19 views

Powerlines fonts get weird after rebooting

My configuration : Fedora 23 KDE Plasma x64 My terminal emulator : Yakuake with Tmux Context : I recently changed my Oh My ZSH! theme for agnosterzak. This theme needs a Powerline font. I tried a ...
1
vote
1answer
52 views

How to use SystemD to run a game server 24/7?

I'm relatively new to Linux (CentOS 7.2). I'm trying to get my Hurtworld servers to run from systemd so I can use that nice restart=always feature. However to get multiple HW servers running, I ...
6
votes
1answer
2k views

Bad utf8 display with tmux

When I press the "é" key multiple times on my keyboard, here is what tmux print (notice the spaces) : arcanis@~ > é é é é é é é é é é é é é It also broke emacs when the file contains utf8 ...
2
votes
1answer
85 views

Ctrl + arrow keys working in tmux

When I SSH in to our server, control + arrow sequences are working fine for me: Ctrl + V then Ctrl + up, down, right, left gives ^[OA, ^[OB, ^[OC, and ^[OD respectively. In tmux, I get ^[[A, ^[[B, ^[[...
2
votes
5answers
2k 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 ...
4
votes
3answers
1k views

Updated my arch linux server and now I get tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968

I recently updated my Arch Linux server and during that process tmux got updated. I was using tmux while the upgrade was going on and used it afterwards, but all during the same SSH session. Now, ...
22
votes
2answers
10k views

New Tmux Panes go to the same directory as the current pane; new tmux windows go to home directory?

Can anyone help me set up this configuration? If I create a new pane, the new pane should start out in the same working directory as the pane I was just in. If I create a new window, the new window ...
2
votes
0answers
40 views

Benefits of using vim buffers over tmux panes / dwm terminals

What are the benefits of using vim buffers over separate instances in several terminals? I've been using vim for quite some time, but at the same time I've been using tiled window manager (dwm/xmonad)...
50
votes
8answers
13k views

tmux status-bar corrupted after catting a binary file, how to reset?

I accidentally screw up my tmux terminal after cating a binary file. Now my tmux is messed up. Detaching and re-attaching doesn't help, nor does a redraw (C-b r). Running reset only redraws the active ...