tmux is a terminal multiplexer, which allows users to work with terminals in terms of windows and panes, which can be created, destroyed, attached, and reattached at will.

learn more… | top users | synonyms

1
vote
0answers
38 views

Selectively “pass” commands onto the shell/program if certain programs are running

Is there a way for tmux to "pass" its control commands (C-A x) to the program running in the pane if a certain program is indeed running?
1
vote
0answers
320 views

Home and End keys doesn't work in vim inside tmux

I can't use home and end keys in vim, when in Tmux. I've got this strange stuff: H F H sample text my .tmux.conf: set-option -g mode-mouse on set-option -g mouse-select-pane on set-option -g ...
1
vote
2answers
804 views

vim backgroundcolor in tmux - how to force zsh to use screen instead of xterm in tmux

I am having the same problem like the questioner in 256 color support for vim background in tmux. In my normal terminal with zsh, I have no background color issues in vim, but when I run it inside ...
2
votes
2answers
47 views

Is it possible to freely intersperse vim panes from the same session and other shell panes in tmux?

I would like to have arbitrary arrangements of vim and other terminal panes within tmux. This is a simple example: ------------------------------------ | | | | | ...
0
votes
2answers
69 views

Tmux swap window with window to the left

I know I can swap windows using swap-window -d *source* -t *dest*, but I'd like to be able to swap the current window with the window to the left/right (effectively, 'move' a window left and right ...
0
votes
1answer
43 views

tmux: Running 'new-window “vim somefile”' gives me strange colors

I use tmux with solarized colors (256), and it works fine, except when I hit the key I have binded to: new-window "vim somefile". It opens the new window with strange colors, probably like if I had ...
2
votes
2answers
2k views

Default byobu vs tmux

What are the main features of default byobu behavior/config for tmux user? I am thinking what to deploy by default to production servers. tmux wins over screen, because it is immediately visible when ...
17
votes
2answers
3k views

vim freezes inside tmux

I'm using split panes in tmux - one being vim, other shell. Sometimes, around once a day, vim freezes. I can move between panes, perform any tmux commands, just vim doesn't react to anything. This ...
5
votes
1answer
560 views

Is it possible to change the background color of the tmux pane or window?

I would like different panes to appear in different background colors in my tmux session. Is this possible?
1
vote
1answer
202 views

Issues reconfiguring send-prefix for tmux

My goal is to use C-k as my tmux prefix on my local machine, but when I'm on a tmux session that itself contains an ssh session into a machine that is hosting a tmux session, I'd like to press C-kj ...
1
vote
1answer
196 views

Scroll in tmux but don't enter copy mode?

I'm using iTerm2 and tmux (from homebrew) on a Mac. I have set -g mode-mouse on in my tmux.conf. When I scroll up I am automatically put into copy mode but I am looking for a way to be able to scroll ...
1
vote
1answer
912 views

How to use Fn keys in tmux?

I have a bind in vim for F5 key to trim whitespaces and I'm unable to use it in tmux. Instead of that letter "T" appears. Is there's any solution for that? Actually it was working in putty, now I've ...
12
votes
1answer
2k views

Can't resize vim splits inside tmux

Everything working fine outside tmux. But in tmux I can't resize vim splits with mouse. I have set mouse=a in .vimrc enabled. is there's any solution for this? .tmux.conf: $ cat ~/.tmux.conf ...
0
votes
2answers
185 views

Any way to share a once-off ssh session like TeamViewer/VNC without creating a user?

Hi, I would like to trial some dev ops/sysads/db admins but I don't want to give them the keys to the kingdom until they've proven their skillz. I'd like something analgous to TeamViewer in the ...
11
votes
1answer
1k views

Tmux current pane border not obvious

I'm struggling to tell which pane is the current one in tmux if there are only two. The border only seems to highlight the adjoining edge which makes it impossible to tell. Here's a Gif to highlight ...
1
vote
1answer
86 views

how to show different status when shell idle in tmux

I'm running multiple screen by tmux. I wish tmux could show 'red' color status if one window stop send out any text for some seconds. Is there that function?
4
votes
2answers
2k views

Tmux notify when someone write me on IRSSI

I'm successfully using IRSSI inside Tmux to manage my chats. I've also tried the great tmux-powerline, which seems really full-featured. Now, I'm wondering if there is a method to make Tmux notify me ...
1
vote
1answer
400 views

In tmux, arrow and ctrl+arrow both result in the same code

Ubuntu 12.10, TERM is set to screen-256color in putty and tmux.conf, confirmed when I export both in and out of a tmux session. If I run cat > /dev/null and then press <down> then ...
1
vote
1answer
68 views

Vim on screen, without looking

I'm trying to do the following: Start a new screen session Start vim on it. Feed commands to it. Check the output as a means of testing vim. I can do this, but the catch is that I want it to be ...
4
votes
2answers
579 views

Does tmux “sort” the PATH variable?

I have a reproducible problem: set up my PATH in Bash .profile start tmux by tmux, tmux attach or any variant echo $PATH and see it with the same components but in different order How to stop ...
3
votes
1answer
208 views

tmux - how-to enable automatic switching from 80 to 132 columns and back

Currently in our terminal based accounting system, clients mostly use putty (0.61) and when a report is viewed in the terminal, an escape code is issued that kicks the screen from 80 to 132 columns if ...
1
vote
0answers
78 views

Set tmux title to path

I'm currently setting tmux to update the window title to the name of the currently running command by doing the following: set-option -g set-titles on set-option -g set-titles-string '#S:#I.#P #W' # ...
0
votes
1answer
583 views

Copy text from remote via iTerm2 with Tmux to OS X clipboard

I'd tried using iTerm2 beta Build 1.0.0.20120724 and using bind C-y run-shell "reattach-to-user-namespace -l zsh -c 'tmux show-buffer | pbcopy'" in .tmux.conf but none works. The solutions I found ...
0
votes
1answer
430 views

Weird distance between margin and cursor (iTerm2 + tmux)

I'm running iTerm 2 on 10.8 and I've installed zsh with oh-my-zsh and tmux (both from homebrew). When running zsh in iTerm it's all good, however, as soon as I run tmux, there is this weird distance ...
0
votes
1answer
102 views

Tmux: start copy mode and selection at the same time

I just started using tmux and trying to get a few bindings to work the same as on screen. One of the binding that I used very often on screen was to start copy mode and selection at the same time, as ...
3
votes
2answers
593 views

tmux: occasionally CTRL+B <arrow key> prints character code ([A, [B, [C, or [D) instead of switching panes

When I try to switch panes in tmux with ctrl+b , tmux sporadically prints the corresponding character code [A, [B, [C, or [D instead of switch panes. I can do this repeatedly, exactly the same way, ...
3
votes
1answer
160 views

No-socket alternative to tmux or screen

My university gives each student a directory on their AFS which is accessible via SSH. There is a (light) CLI-driven piece of software that I would like to run continuously from the university. I ...
10
votes
2answers
945 views

tmux configuration conditional to OS

There's some lines of my tmux.conf which I'd like executed only if my OS is Mac. However, I'd like to use my tmux.conf on multiple different OS's. How can I make a command conditional to the OS on ...
1
vote
1answer
70 views

tmux mouse select and scroll at the same time?

When in copy mode in tmux, using the mouse is there a way to select text, and scroll the window up at the same time? When selecting text the buffer does not scroll up when I reach the top boundary. I ...
1
vote
1answer
139 views

Text no longer shows after killing program, using tmux

I'm running a Minecraft server and whenever I "sh rtoolkit.sh" to start the server, everything works fine however once I stop the server and return to the command line ready to enter a command, text I ...
5
votes
1answer
2k views

Is it possible to search tmux scrollback history?

I'm starting to use tmux, and I already love it. But if I could search through scrollback history it would be even better (e.g. like in iTerm2). Is there a way to do it as of now?
0
votes
0answers
267 views

Tmux visual artifacts, strange character map

It’s running a java program outputting console log. Config file # visuals set -g status-bg black set -g status-fg white set -g status-left '#S (#[fg=green]#(whoami)@#(hostname)#[fg=white])' set -g ...
4
votes
1answer
911 views

Correct way to get emacs 16 color support inside tmux?

I'm trying to get a custom color-theme (solarized) setup for my emacs that utilizes a 16 color palette, which I've already set up for my terminal (gnome-terminal). When running emacs from a normal ...
0
votes
1answer
239 views

Setting caps lock key to CTRL but still function as caps lock if I press for long enough in Mac OS X

If possible I would like something similar to this: http://apple.stackexchange.com/a/4815/31313 Basically a simple script that detects when I'm in tmux, if I am change the CAPS lock key to be a CTRL ...
2
votes
1answer
148 views

Irssi in tmux - Messages overwritten

I'm trying to run Irssi in tmux, and I've been coming across something strange. Whenever a new message is received, it overwrites the last message. For example, say the following chat log is in my ...
3
votes
1answer
77 views

Is there a way to disable closing panes in Tmux?

I am using tmuxinator. Here is my project file. project_name: Network project_root: ~/Code/Network tabs: - editor: vim - worker: layout: ...
2
votes
1answer
211 views

Can tmux and a SSH-client on Windows be more integrated?

I am using tmux on my Debian server and PuTTY on Windows. This works as expected, but sometimes I wish, to have a more Windows like feeling when working via SSH, eg. have separate windows for the ...
4
votes
1answer
128 views

'subl -w' doesn't ever un-block when running under tmux on OS X

On my mac, I have $EDITOR set to 'subl -w'. If I run my shell session under tmux, it opens the editor fine, but the command on the terminal never exits. However, this works fine on a terminal by ...
2
votes
1answer
388 views

Binding tmux command key to ctrl-\ on mac

I'd like to use ctrl-\ as the command key for tmux. Ctrl-a and ctrl-b conflict with bash and emacs bindings. set-option -g prefix C-\ When I start a tmux session, I get: /Users/justin/.tmux.conf: ...
3
votes
0answers
72 views

iTerm 2 running tmux session causes “startup disk almost full” randomly

Anytime I run a tmux session, disk space will randomly begin filling up and the computer will slow down, then everything goes back to normal. This happens periodically. I am using iTerm 2. Does ...
2
votes
1answer
403 views

tmux: trying to bind utf8 key

I'm using tmux 1.6 with konsole on Fedora 17 i686. I have an azerty keyboard (with accentued chars), and I want ton bind 'ù' key. I made the following ~/.tmux.conf: setw -g utf8 on bind-key ù ...
4
votes
2answers
1k views

Force update for tmux status bar

I'd like to have the current time in my tmux status line. I got as far as: $ tmux set status-right '"#22T" %H:%M:%S %d-%b-%y' This does alter the time in the status line to include seconds. ...
0
votes
1answer
131 views

How do I undo a rebind in tmux?

In other words, how do get back a default behavior? I used this config (from the book tmux - Productive Mouse-Free Development): # Maximize and restore a pane unbind Up bind Up new-window -d -n tmp ...
2
votes
2answers
2k views

Which is the correct way to config the $TERM and tmux?

I am using gnome-terminal with bash. When I set xterm-256color for $TERM and in .tmux.conf most of the things work but when I try to change the colorscheme of vim the things mess up. When I set ...
0
votes
1answer
127 views

Tmux: Automatically run a shell command whenever I switch to that pane?

I would like to have a tmux pane where everytime I switch to it runs a command like git diff so that everytime I switch to it I see a new version of the output. Can this be done?
0
votes
2answers
166 views

Should I invest in learning tmux if I solo code or is it mainly useful for pair programmers? [closed]

Just what the main question says. I'm mainly a solo programmer. Tmux looks interesting but I want to ask the seasoned veterans.. is tmux an every day tool? Or is it just for when you need to pair ...
3
votes
1answer
494 views

tmux — any way to enable scrolling, but not selection?

I like that when mode-mouse is on in tmux, I can scroll through the buffer, but I don't like that I can't copy stuff to my OS clipboard by selecting it (as when tmux is disabled). Question: Is there ...
0
votes
1answer
186 views

tmux combine multiple commands to one vi-copy command or tmux command to yank a line

In tmux, i know we can chain multiple commands to a key by using \; See Here But in vi mode, i want one single key press to go to the beginning of the current line, begin-selection, go to end-of-line, ...
1
vote
1answer
813 views

Home and End keys in Emacs don't work when run from Tmux

When I run Emacs from Tmux, the Home and End keys do not work (Home key runs the Search command as if C-s was pressed). The problem started when I added this in my ~/.bashrc file: TERM="xterm" export ...
2
votes
1answer
259 views

Is it possible to automatically attach to a tmux session using Chrome's Secure Shell extension?

Using Secure Shell in Chrome, can you automatically attach to a tmux session when SSH-ing to a server? If so, how do you do that?