Tagged Questions

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

5
votes
4answers
1k views

Tmux xclip copy no longer working

On mu ubuntu 12.04 setups my tmux clipboard copy and paste commands are setup as follows: set -g prefix M-a unbind C-b bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" bind C-v run "tmux ...
0
votes
1answer
438 views

tmux with iterm2 attach a remote session

I'm using the Tmux integrating with ITerm2, which can create a tab in ITerm 2 for each window created by Tmux. But somehow this doesn't make much sense for the usual SSH scenario, where we first SSH ...
8
votes
2answers
374 views

tmux not respecting disabled control flow

In my shell I have flow control disabled using stty -ixon. This works perfectly in the shell and when I launch tmux and start programs within tmux. However, when starting a new session from the ...
14
votes
4answers
3k views

Why do I have to re-set env vars in tmux when I re-attach?

I mainly work on a mac and ssh/tmux attach to a Linux machine to do my work. I have ssh-agent running on the Linux machine. I have set -g update-environment "SSH_AUTH_SOCK SSH_ASKPASS WINDOWID ...
0
votes
3answers
106 views

When you ssh into a server, do you use server settings or your own settings?

So say I'm running a Linux server that is running irssi in a tmux session.(Detached) My question is, when I ssh into the server and reattach the session, will my shortcuts that I use on the 2nd PC ...
6
votes
2answers
3k views

tmux set-titles doesn't work?

To start tmux on every shell login, the following was added to the ~/.bashrc (on the server): if [ $TERM != "screen-256color" ] && [ $TERM != "screen" ]; then tmux attach || tmux new; ...
3
votes
1answer
108 views

How do I save all vim buffers on tmux window change?

Is it possible to hook up vim save all command on tmux window change? I know that gui vim has option to save on focus lost. I'd like to have similar behavior in console.
8
votes
3answers
649 views

Make a tmux pane 80 (or so) columns wide

I'm trying to follow the 80 column rule when writing my code, my current tmux setup is split 50/50 horizontally. I like to have vim in the left-hand pane, and in the right-hand pane I have a 75/25 ...
0
votes
0answers
31 views

Pass process ownership to another shell [duplicate]

I didn't hear of anything like this, but It might be possible. I often end up starting a process on a server and midway realizing that I would like to suspend that process and continue it inside a ...
1
vote
2answers
273 views

tmux.conf file will not use backslash comma in lines \;

Using tmux both 1.7 and 1.8. I see \; in tmux.conf files everywhere, but it fails with an error when I add it to mine. Here is an example: bind -t vi-copy 'y' copy-selection \; run-shell "tmux ...
3
votes
2answers
667 views

Using TMUX on boot up of Linux CentOS

I'm trying to figure out a way in which I can boot TMUX under a user other than root, but automatically whenever Linux starts. At least that's what I think I need. What I want is to be able to SSH ...
1
vote
1answer
2k views

Failed to get bus connection: Could not connect: Connection refused

When I'm running evince file.pdf I got this error Failed to get bus connection: Could not connect: Connection refused Ubuntu 12.04 I have to reboot. Can I repair this error without reboot?
1
vote
1answer
362 views

SSH disconnects when screen locked with vlock

I'm using tmux + PuTTY to get all the UNIX goodness I need when using Windows. I have the following settings in my .tmux.conf: set-option -g lock-command vlock set-option -g lock-after-time 1800 As ...
5
votes
1answer
120 views

Tmux: showing sessions on bottom row

I'd like to see all tmux sessions on the bottom row of the screen, presented the way tmux presents all windows in the current session. Basically a sticky version of the <prefix>s menu. So the ...
5
votes
2answers
3k views

Copy / paste text selections between tmux and the clipboard

I am running the latest version of tmux (from the git repository) and xclip (0.12), and I would like to be able to use Emacs-like keyboard bindings to move around the text in copy-mode, copy (M-w) ...
6
votes
2answers
313 views

Replacing tmux with exec

I'm using tmux from a while and I'm very happy with it. Since I need it most of the time, I made it my default shell (in guake, to be precise). This is nice and I'm perfectly fine with this. But ...
1
vote
1answer
95 views

State/Toggling variables in tmux

I was wondering if there is a way of defining a state variable in ./tmux.conf, such that depending on this variable, the keyboard binding would invoke a different command. For example, I would like ...
1
vote
1answer
526 views

Set environment variable for all of tmux shells when gnome-sessions gets restarted

To solve this problem, I need to set the environment variable DBUS_SESSION_BUS_ADDRESS for all shells inside tmux every time I restart gnome without restarting tmux (this is often). How can I best ...
0
votes
1answer
494 views

tmux: Remapping keys to pane on the left/right/top/down

Tmux allows one to move through panes using Ctrl-b + (→, ←, ↑, ↓). I would like to remap this to: Ctrl-b + Ctrl-(l, j, i, k). For reference, the layout of the keys l,j,i,k is similar to that of the ...
6
votes
3answers
3k views

Tmux not sourcing my .tmux.conf

I installed tmux locally (without root priviledges). I also created my .tmux.conf file in my home directory with the following lines: unbind-key C-b set -g prefix C-o bind-key C-o send-prefix ...
15
votes
2answers
13k views

How do I get the solarized colour scheme working with gnome-terminal, tmux and vim?

There's a lot of questions around this, but it's because there are so many variables. I had to piece together instructions from many sites before I got this working. First, I could not easily set up ...
2
votes
1answer
576 views

Display current pane's current directory in status

Is there a way to update pwd in tmux status, instead of showing it in PS1? set -g status-left "#(pwd)" set -g status-interval 1 doesn't work.
1
vote
1answer
1k views

tmux exits abruptly right after loading

I just compiled my own version of tmux with libevent. Whenever I run tmux from zsh, tmux starts, but exits quickly returning [exited]. I read here that the problem could be my configuration for ...
0
votes
1answer
502 views

Unable to install libevent without admin priviledges

I just downloaded libevent-2.0.21-stable, which I am hoping to compile so that I can use tmux. However, when I run: ./configure --prefix=/path/to/libevent-2.0.21-stable/ make make install ...
3
votes
1answer
394 views

Tmux status bar question

I'm fairly new to tmux and to truly master and learn it, I decided to make myself a fresh .tmux.conf I was wondering, though, if it's possible to hide a path in the status bar. For example, I have ...
2
votes
1answer
249 views

Launch R code from within vim-r-plugin as separate window instead of inside tmux/screen?

I use the vim-r-plugin to write R code in vim. It is a nice plugin and I love that the plugin lets me run code directly from within vim. However, the R prompt is opened in a console which is ...
1
vote
2answers
133 views

Split tmux window with same command

I have a tmux window that I've open with a certain command. Is it possible to split that window with a new pane which also runs the same command, not the default command? The point is to avoid having ...
4
votes
2answers
304 views

How can I synchronize processes started in different TMUX panes?

Consider this: tmux split-window -d program1 program2 # this program depends on some side effects produced by program1 In this case, program2 will start before program1 is ready. program1 will send ...
6
votes
1answer
391 views

tmux status line with blank line on top?

I have a nice tmux status line, but I don't like how the bash/commands run flush along it...that is, if the screen is full, i'm typing things right above the status line. I'd like a one line break ...
2
votes
1answer
204 views

How can I find the valid values for TERM to use in tmux?

When starting tmux I need to pass a valid terminal type. Since I am scripting the initial startup of tmux I would like to cover all bases by figuring out the valid values of TERM on the current ...
2
votes
2answers
724 views

Changing tmux .bash_profile behavior

I have a script in my .bash_profile that prompts for X sessions to boot. When I launch tmux, I get this prompt that I had only intended for the TTY login. Is there something I can put in ...
5
votes
2answers
2k views

Creating launchable tmux configurations?

I find myself often doing the same thing with tmux: cd to a given directory. tmux Rename window to what I'm doing. Split the window vertically 50%. Start one process in the left window. Start ...
13
votes
2answers
8k views

tmux bottom bar color change

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

The key codes for Caps Lock, Shift, Left Control and FN key?

Can somebody please provide the key codes for these keys: Caps Lock Left Shift Left Control Option key FN The key code I'm talking about is something along the lines of \<Esc>[200~, although ...
2
votes
1answer
156 views

How to set Cols and Lines for a Subprocess

I have a script that runs a series of scripts numbered 001,002,003,004... etc down to 041 right now, will be more in the future - and these scripts them selves use some cursor control to print a ...
9
votes
2answers
3k views

Copy text from one tmux pane to another (using vim)

I have two files opened in vim, each in one tmux pane. I would like to copy let's say 10 lines from one file to another. How can I accomplish this not using the mouse's Copy -> Paste ?
3
votes
1answer
1k views

Kill a tmux session and select another tmux session

I am trying to bind X to do the following: prompt the user whether the session should be killed if y is entered, kill the session after the session is killed select another session (last, previous, ...
1
vote
1answer
465 views

How to compile tmux 1.7 on CentOS 5.8?

I would like to have tmux 1.7 on my machine with CentOS 5.8 (64 bit). It requires libevent in version at least 1.4.14b or 2.0.20 and the latest version in yum packages for CentOS 5.8 is 1.4.13 . I ...
2
votes
2answers
744 views

Tmux Terminfo problem with Zsh key bindings

Zsh in Emacs edit mode comes with the default key binding ALT + Backspace to delete a word on the right side of the cursor and ALT + D to delete a word on the left side. I would like to add the latter ...
3
votes
0answers
2k views

Reset background to transparent with tmux?

I recently set up tmux-powerline and noticed that the background color on the status-left, if changed, refuses to go back to default and transparent (if transparency is enabled). I was able to fix ...
7
votes
4answers
4k views

Reload of tmux config not unbinding keys (bind-key is cumulative)

I've been experimenting with different tmux keybinding settings and I've noticed the following: If I reload my tmux config (from within tmux) the keybindings I once had loaded will remain loaded. The ...
1
vote
1answer
229 views

Specifying tmux command-prompt line

How can you specify the line where you want tmux's command prompt to appear? I want to see the panes when executing tmux commands that require pane numbers (e.g. join-pane, etc) but as the command ...
8
votes
1answer
939 views

How to copy from/to the tmux 'clipboard' with shell pipes?

When working in a shell environment I run fairly often into the need to copy 'intermediate pipe output' around (eg. from/to already running editors, to other shells, other machines, etc.). When in a ...
2
votes
1answer
47 views

How to prevent tmux from displaying date in new window

When I create new window in tmux it displays name of current directory and date: Directory: /home/killy nie, 4 lis 2012, 14:51:18 CET [killy@xerxes : ~] How can I prevent that? EDIT: I realized ...
6
votes
2answers
757 views

emacs colors based on $TERM environment variable

I want to know if it is possible to make emacs, when running in a gnu screen or tmux session, use the same colors as when TERM=xterm. In a gnu screen or tmux session, TERM=screen and emacs uses a ...
12
votes
2answers
6k 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 ...
4
votes
1answer
251 views

tmux: Set default session for attach

I have two tmux sessions (0 and 1), each with a set of windows. When I run tmux a, I attach to one of the two sessions, usually 1 but sometimes 0. I always want to attach to 0 if I don't specify a ...
7
votes
2answers
3k views

Byobu with tmux, how to use F-Keys

I'm accessing a linux box with Byobu enabled (with tmux) and I don't seem to be able to use some F-Keys without being binded to Byobu. For example using F6 to sort on htop. I followed this advice, but ...
3
votes
0answers
980 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 ...
4
votes
1answer
476 views

Byobu creates infinite spawn of “byobu-status -> tmux” children under tmux

When I launch Byobu, my System Monitor shows a new tmux process with a continuously growing set of byobu-status -> tmux children eating-up all my memory... -> tmux -> byobu-status -> tmux ...