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
0answers
90 views

GNU screen :fit equivalent in tmux

I'm experiencing this problem where I've attached a single tmux session at multiple terminals with differing console sizes. Is there a solution to rid of the view-port without having to disconnect ...
1
vote
1answer
472 views

How to get byobu to start at startup with a command executed, as root?

I want when the computer start, a byobu session is started and a command executed in the first window (windows 0), without requiring any user intervention. It is very important that this doesn't ...
2
votes
2answers
110 views

Vim alerts after a few seconds when no event occurred

I use Vim in a tmux session, and recently I've noticed that Vim is raising an alert after a few seconds when I switch to another tmux window. Nothing has happened in Vim after I move windows - usually ...
1
vote
1answer
869 views

How to terminate tmux session and processes it spawned

I noticed that i have a running process and I think it's because i initialized the process in byobu which is using tmux. ps aux | grep sidekiq 1000 13786 0.0 0.0 8108 900 pts/4 S+ ...
1
vote
2answers
120 views

Is there an easy way to “restart” a tmux pane?

Assume I have a tmux (1.7) window split as follows: ________________________ | 1 | | | |-----------+------------| | 2 | 3 | ...
0
votes
0answers
22 views

How do I enable CUA mode in copy mode of tmux?

How can I enable CUA (Ctrl+C for copy, Ctrl+X for cut, Ctrl+V for paste) in copy mode of tmux?
2
votes
0answers
103 views

Tmux is not able to distinguish between insert and shift-insert

Insert when in xterm, gives ^[[2~ and, Shift+Insert gives ^[[2;1~ All this is good until I start tmux. Note that the $TERM variable remains the same, so this issue should not be related to ...
2
votes
2answers
174 views

Why does Bash readline sometimes try to parse the second word of a command out of context?

I recently migrated all my dotfiles and setting to a new laptop running Ubuntu 13.04, and have been noticing a strange behavior that I've never seen before. Essentially, it seems like my terminal is ...
1
vote
3answers
265 views

Attach to tmux session and run a command

How I can run a command in Tmux when I'm attaching to a session ? I want attach and immediately run a command. I read the docs, but found only send keys, which not suits my needs.
3
votes
2answers
125 views

How to make .bashrc call dependant on tmux program being installed?

I have a section in my .bashrc that fires up the tmux program (terminal multiplexor). However if the tmux program isn't installed (say I'm setting up a new computer) then having this in my .bashrc ...
2
votes
0answers
90 views

Moving the mouse over a terminal window generates escape sequences [closed]

When using tmux over a ssh connection, if I launch a program to keep open, I run into troubles when I move my mouse inside the tmux window: ...
2
votes
1answer
47 views

Send variable through tmux binding

I'm trying to setup a tmux (1.9) key-binding to swap to windows. Unfortunately, I can't seem to figure out a way to send a variable for the swap. For example, if you hit C-b . It will then prompt ...
0
votes
2answers
171 views

How to kill tmux window automatically when terminal window closed?

I am new to tmux. I am starting a process in a tmux window in a terminal window. When I close the terminal window, the process not killing automatically but If I kill tmux window before close ...
3
votes
1answer
666 views

Uptime showing in tmux status bar

I want to show the uptime in the tmux status bar in this format DD:HH:MM without any of the other cruft that the uptime command shows. I've tried #set -g status-left '#[fg=green]#H ...
1
vote
0answers
141 views

GNU screen, tmux, dvtm - none work as ordinary user

I bought cheapest vps for teamspeak hosting and I have strange issues with demonizing it's process. None of screen tmux and dvtm work for ordinary user, but they work witout a charm for root. As far ...
1
vote
1answer
285 views

How can I scroll screen or tmux buffer without pausing the application?

I want to have the same behavior as C-A/C-B+[ provides except i want to be able to return to my application to see that it has progressed in her calculations or has not disconnected to the server ...
5
votes
1answer
188 views

Linux VT Emacs in tmux, breaks color and cursor

TERM is set to screen. I tried with screen-256color, but then the colors went really nuts. I also tried xterm, linux, and some others (that I could think of, not really thinking) but screen is the ...
0
votes
1answer
358 views

Tmux ranger integration: opening text files in new panes

Here we have some amazing tools: tmux, ranger, vim... Would be amazing to configure ranger to open the files (when text editable) in a tmux newpane? Is that easy and how it is done?
1
vote
1answer
65 views

how to end tmux sequence after switching panes

In tmux, when having separate panes open, I do Ctrl-B ↑ to switch to the pane above. Great. Except that if the next key I want to press is also an arrow key (e.g. I want to go to the bash prompt above ...
2
votes
1answer
40 views

How can I bind my ctrl+b so that I don't need to press it to resize my pane?

I managed to be able to resize panes in tmux thanks to this answer. But now I press CTRL-b and then e each time I want to resize the pane (e.g. make larger to the left). How could I bind the CTRL-b as ...
2
votes
1answer
215 views

vim and tmux are conflicting. How can I fix this? [duplicate]

I'm having a painful experience with tmux. I'm using solarized in vim but when I run tmux then my vim configuration does not work. It's as if solarized is not configured in my .vimrc. Out of tmux ...
2
votes
1answer
645 views

How can I create a shortcut to resize panes in a tmux window?

I am having lots of issues with tmux in mac. Another problem I have is that I can not bind a key in my tmux.conf to be able to resize my panes. What I need is the CTRL-b: resize-pane -U 10 I currently ...
3
votes
4answers
760 views

is there an alternative to tail -f that has convenient scrolling? [duplicate]

I'm usually inside GNU Screen or tmux, which doesn't give me excellent scrolling functionality. Is there an alternative to tail -f that allows me to quickly scroll up? A tool that is like most is to ...
4
votes
5answers
7k views

How can I page up or down in tmux with Terminal.app?

I have tmux installed. But I can not scroll up or down. I.e. as soon as I tmux I get only a portion of the screen and can not scroll up. crtl-b + Page Up does not work since I am in Mac and I can not ...
2
votes
0answers
118 views

Simulating GNU Screen's shelltitle in tmux

I'm trying to simulate GNU Screen's shelltitle feature in tmux. I have the following in my ~/.bashrc: if [[ "$TERM" == screen* ]]; then SCREEN_ESC='\[\ek\e\\\]' else SCREEN_ESC='' fi ...
0
votes
1answer
393 views

Resume bash session in new TMUX or SCREEN? [duplicate]

Sometimes I'll start doing something fast. I've got something to do, and I need to get it done now. Then of course i realize that I need to do something else to help me finish what I started, so I ...
0
votes
1answer
129 views

TMUX under Gentoo TTY artifacts

Problem: Tmux.conf (included below) generates a statusbar... with a light gray background (the config says '#000000', so black). This background ends up replacing what would normally be the normal ...
4
votes
3answers
1k views

How do I run a shell command from .tmux.conf

How do I run a shell command from .tmux.conf, or otherwise automatically when tmux launches, without having to hit any other command? How can I create an alias, a function, or a script which boils ...
3
votes
3answers
741 views

How to make my tmux which starts via crontab @reboot use bash?

I have a crontab which launches tmux-launching-script as follows : -sh-3.00# crontab -l @reboot /root/scripts/tmux_autostart.sh where #!/bin/bash # setup tmux session tmux new -d -s my_session ...
0
votes
1answer
103 views

How to start tmux so that it won't get killed on exit in last windows? [duplicate]

I want to start tmux so that it won't quit when last pane/window is killed. As for now I do it this way : tmux new -d -s my_session_name I can add a windows name as such: tmux new -d -s ...
7
votes
1answer
336 views

How can I make tmux monitor a window for inactivity?

I've switched from GNU Screen to tmux. They're both similar, except that tmux is still maintained. GNU Screen has a C-a _ ("silence") command. This command makes GNU Screen monitor the current ...
4
votes
4answers
857 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
320 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 ...
7
votes
2answers
274 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 ...
11
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
102 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 ...
5
votes
2answers
2k 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
91 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
487 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
228 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
534 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
1k 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
312 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
112 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
278 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
82 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
421 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
377 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 ...