Change background color of active or inactive pane in Tmux

It seems that tmux-2.1 (released 18 October 2015) now allows the colours of individual panes to be specified. From the changelog: * ‘select-pane’ now understands ‘-P’ to set window/pane background colours. e.g. [from the manual] to change pane 1’s foreground (text) to blue and background to red use: select-pane -t:.1 -P ‘fg=blue,bg=red’ To mimic iTerm … Read more

Using Emacs server and emacsclient on other machines as other users

This should provide a starting point for what you want. From the info node (emacs) emacsclient Options `–server-file=SERVER-FILE’ Specify a “server file” for connecting to an Emacs server via TCP. An Emacs server usually uses an operating system feature called a “local socket” to listen for connections. Some operating systems, such as Microsoft Windows, do … Read more

Bind Ctrl+Tab and Ctrl+Shift+Tab in tmux

Recent “unreleased” versions of tmux do automatically recognize those xterm-style key sequences once you have your terminal sending them (no need to change your terminfo entry). The next release version (1.8?) should also have this support. With an appropriate build of tmux1, all you have to do is bind the keys in your tmux configuration: … Read more

How to write if statement in .tmux.conf to set different options for different tmux versions?

Based on @ericx’s answer and @thiagowfx’s answer I put the following together which covers many of the listed incompatibilties from version 2.0 onwards: # Version-specific commands [grumble, grumble] # See: https://github.com/tmux/tmux/blob/master/CHANGES run-shell ‘tmux setenv -g TMUX_VERSION $(tmux -V | \ sed -En “s/^tmux[^0-9]*([.0-9]+).*/\1/p”)’ if-shell -b ‘[ “$(echo “$TMUX_VERSION < 2.1″ | bc)” = 1 ]’ … Read more

tmux: open terminal failed: missing or unsuitable terminal: xterm-256color

Your system doesn’t have xterm-256color. You could: Set TERM to something other than xterm-256color outside tmux (try just plain export TERM=xterm). See if there is a package containing xterm-256color, perhaps a later version of ncurses or terminfo. Install it manually from another system with something like: infocmp -x xterm-256color > out Then transfer the “out” … Read more

How do I jump to double-digit window number in tmux?

There are two straightforward options (let C-b represent the prefix key): Bring up a prompt in which to enter a specific window index with C-b ‘ (this is a default key binding). Press enter after inputting the desired index. Interactively select the window you want from a list with C-b w (also a default key … Read more