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

1
vote
1answer
28 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 ...
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 ...
3
votes
1answer
50 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/...
0
votes
0answers
16 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-...
3
votes
0answers
36 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 ...
0
votes
0answers
28 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
20 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 ...
0
votes
0answers
23 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
71 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
0answers
14 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 ...
2
votes
1answer
57 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, ^[[...
1
vote
1answer
45 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 ...
2
votes
0answers
32 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)...
1
vote
2answers
48 views

How to run multiple programs in one single terminal window?

I would like to write a script that runs multiple programs/commands 'program1', 'program2', 'program3'... in a mosaic of terminal in one single window using gnome-terminal and also using tmux (I mean ...
2
votes
1answer
22 views

Tmux to create a window if it doesn't exist yet

Is it possible to configure tmux so that when you want to switch to a window that doesn't exist, it creates the window and then switches (avoiding Ctrl-b c) ?
0
votes
2answers
45 views

In tmux how do I create a new pane with the right pwd while running a command in the parent pane?

If I create a new pane B from pane A and I'm not running any commands in A then B gets created with the same pwd as A which is what I want. However if while creating the new pane I'm running a bash ...
0
votes
2answers
46 views

Tmux shortcut problem

While using Tmux, I tried to maximise the current pane using <prefix> z, and had a bit of a keyboard fail and accidently held down the prefix keys while pressing z, instead of letting go of the ...
0
votes
1answer
28 views

how to echo/print block by block

I just started using tmux and butterfly and I need to scroll one panel. I tried Ctrl + b + ↑ but it scrolled the whole terminal instead of one panel. Is there any command line to display my ...
0
votes
1answer
18 views

How do I split a tmux window into thirds?

I like to use a tall terminal window on the right side of my monitor and I wonder if there's a nice way to divide it into even vertical thirds.
2
votes
1answer
32 views

tmux: inner window notify outer session

Inside a tmux session I nest another tmux session, on a remote computer. I was wondering if there is a way for the inner tmux to notify the outer when a process is completed. In both (remote, local) ....
0
votes
1answer
29 views

Create pane occupying half of the screen

Let's say I have an arbitrary layout of tmux panes in a window. +------------------------------+ | | | | | | | ...
0
votes
1answer
31 views

After 2nd tmux pane windows can't be opened

For the 1st pane on tmux, I had to do this but can open a window. For 2nd and all the rest of panes, I can't open windows. For example: $ echo $DISPLAY localhost:10.0 $ meld . & [1] 466 ...
2
votes
1answer
40 views

tmux: how to bind a key to launch shell command?

I use tmux to develop, with two panes: one to edit the code, and one to compile it. I need to switch pane very often to launch the compile command (say "mvn install"). How can I bind a key (say "Ctrl+...
-1
votes
1answer
35 views

tmux not printing ANSI colors in status bar

I'm using Mac OSX Yosemite, and I use istats to get CPU temperatures: I wanted to put my CPU temperature in my tmux status bar, so I made my tmux config the following: As you can see, when I ran :...
0
votes
0answers
53 views

How can I find where tmux is installed on my computer? I would like it to autostart when bash starts

I know that this exists. But it isn't working, and when I try to find tmux in the "bin" directories of my computer, it doesn't find it. How is it working when I enter tmux into terminal then? UPDATE:...
1
vote
3answers
22 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
1answer
42 views

What is the -c [start-directory] in “tmux new-session” command? [duplicate]

In the manual new-session -c option is listed as use to specify [start-directory] with no further explanation. I have a few question to help me understand: What is start-directory used for? Does ...
0
votes
0answers
28 views

Tmux and GPM on bare tty

I am running Tmux 2.2 on Arch Linux. I tend to use it from a raw TTY console, rather than an xterm in a window manager. I have GPM installed and running, however I cannot seem to get GPM and Tmux to ...
2
votes
1answer
46 views

Different vim colors and styles in Tmux and Gnome

I am using tmux, and recently found out that the same vim colorshemes inside and outside of tmux have different colors Left is tmux in gnome-terminal, right is plain gnome-terminal, gnome-terminal ...
0
votes
0answers
9 views

How to tell tmux 'new' to respect `base-index'

TL;DR - Is it possible to start tmux from a script so numbering of the first window (which is created by tmux new) respects the setting of base-index in tmux.conf? I'm starting tmux from a script and ...
1
vote
2answers
32 views

Is it possible to start tmux visible session

The code below will run source ~/.bashrc under tmux but this will not open tmux on the terminal. #!/bin/bash tmux new-session -d -s my_session 'source ~/.bashrc' I want the below effect from the ...
0
votes
0answers
59 views

Can't use F1, F2, F3, F4 as prefix key

I've been using F9 as my prefix key for a while but decided F3 would work better. I changed nothing else in my .tmux.config and F3 doesn't work, I get a system error beep instead. Same with F1-F4. ...
4
votes
3answers
996 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, ...
0
votes
0answers
29 views

Send-keys across tmux panes in vim in Cygwin is painfully slow

I am using vimux or vim-tbone to send code to an interpreter in another pane. It works fine with any shell, but I can't get it to work properly in windows. I can't have a VM, so I use cygwin at work ...
0
votes
0answers
22 views

vim + tmux: some shortcuts broken?

When I am using vim inside of tmux, some of my shortcuts are broken. E.g. I have bound Ctrl + up/down and Shift + up/down in my .vimrc and when I'm running vim inside of tmux these shortcuts do not ...
1
vote
2answers
66 views

Is there a program like tmux or screen but only for attaching or detaching a session

I was wondering if there was a program like GNU/screen or tmux that would allow me to attach or detach a session with a running process but would not provide all of the other features such as windows ...
1
vote
0answers
45 views

Bash command history stops working after starting new tmux session

My bash command history stops working after starting a new tmux session. No previous commands when typing up, down, reverse search, no output from running history. I've confirmed that this happens ...
3
votes
3answers
117 views

persistent ssh sessions without screen or tmux

My work seems to have deliberately crippled screen and tmux such that they destroy all sessions on logout (they didn't answer when I opened a ticket about it). i.e., when I [detach and] log out, ...
1
vote
1answer
76 views

How Do I Make the tmux Rename Window Prompt Empty by Default?

In tmux, pressing prefix + , prompts you to rename the current window: The (rename-window) prompt is automatically populated with the current window name -- in this case, zsh. I would rather the ...
0
votes
1answer
62 views

How to change default new window directory from within the tmux

I recently moved from GNU screen to tmux. I find it quite similar but with bigger support (I switched due to problem with escape-time in neovim- resolution was only for tmux). Unfortunately in tmux I'...
2
votes
1answer
49 views

Capture tmux status bar content

I wrote an addon to tmux, tmux-gitbar, it adds to tmux status bar some information about the current Git working tree (name of local and remote branch, working tree is clean?, etc.). So basically it's ...
1
vote
0answers
30 views

Remapping Caps Lock to ctrl+b [duplicate]

I recently moved to Linux from OSx and in there I had mapped Caps lock to Ctrl+b. This was mostly done because of tmux. How can I do this in Ubuntu 14? There is a very comprehensive answer here how ...
1
vote
1answer
30 views

tmux check interfering with scp usage

My .bashrc file on my server is relatively simple, but it has this chunk to ensure that it automatically connects to tmux on login: echo Checking for tmux if [ -z ${TMUX} ] then /usr/bin/tmux ...
1
vote
0answers
153 views

tmux not executing ~/.bash_profile on start up

I searched the net and many people complained that tmux wasn't executing their .bashrc. The solution thats suggested everywhere was to source .bashrc from within .bash_profile cos tmux launches bash ...
0
votes
0answers
12 views

Launch command in new tmux session alias? [duplicate]

How can i create a new tmux session and run a command in it, without opening the tmux session. I want to be able to run a background process like grunt serve from the command line but without opening ...
0
votes
1answer
35 views

tmux online command reference

Does tmux have an online (built-in) command reference? I'm looking for something like vim's :help diffput for example. I realize the man page exists. It's just imperfect for looking up a specific ...
0
votes
0answers
42 views

tmux script to open a new window and run a script, keeping the window open

I am working on porting a script of mine to use tmux. Essentially it takes a text file and executes a command with each line of said file in it. Right now it uses gnome-terminal and opens a new ...
1
vote
0answers
21 views

tmux status bar rightmost few chars disappear

From time to time I saw my status bar rightmost few chars disappear. For instance, the intended one 11:40 to be 11:4 My .tmux.conf is as the following: # Set status bar set -g status-bg black ...
1
vote
0answers
96 views

tmux - Catch 22 with “unknown key: WheelUpPane” for osx and Ubuntu

Recently tmux changed a lot of mouse stuff for the better. I've got a bit stuck however because I need to have bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{...
6
votes
2answers
406 views

What is the gnome-terminal ANSI escape sequence for “CTRL + arrow/s”?

I am trying to configure my bash ~/.inputrc to these settings (Note: ←, → mean the left and right arrow keys) Ctrl + ← - should jump back a word Ctrl + → - should jump forward a word Currently I ...