tmux-config is a tmux configuration as a TPM package. It is inspired by tmux-sensible with some things cleaned up. This plugin is compatible with tmux-vim-bindings, vim-tmux-focus-events, tmux-colors-solarized (dark), tmux-battery and tmux-cpu.
Note! For an example config please check tmux.conf in ek9/shell-config.
Part of ek9/dotfiles collection.
Add plugin to the list of TPM plugins in .tmux.conf
(preferably
straight after tmux-plugins/tpm
):
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'ek9/tmux-config'
Hit prefix + I
to fetch the plugin and source it.
- Enable UTF-8 support
- Disabled tmux starting as a login shell
- Address vim mode switching delay problems and workaround bug in OS X
- Force use of correct
$TERM
- Increase scrollback buffer size (50000 lines)
- Increase
tmux
message display time (4s) and decrease status refresh times - Enable mouse focus events and mouse mode (on terminals that support them)
- Enable tmux scrolling via mouse wheel up/down.
- Enable vi key bindings in
tmux
command prompt and copy mode tmux
grouped session optimizations- Disable visual bell
- Allow multiple commands under single prefix key within 1000ms
- Minor
tmux
key optimizations*:- Make sure
C-b
is unbound if it is not used as a prefix - Optimize for fast switching between alternate Windows (if
C-b
is prefix thenC-b b
will switch between alternate windows) - Bind
prefix r
(e.g.C-b r
) to quickly source~/.tmux.conf
- Make sure
- Minor Display Optimizations:
- Start window numbering from 1 instead of 0
- Enable updating of titles
- Customize statusbar and windows display options
- Enable title updating + set default title string
- Mac OS X + iTerm tweaks
- Make sure specific environment variables are refreshed in new sessions/panes (
DISPLAY PATH SSH_AGENT_PID SSH_AUTH_SOCK
and some others) - Minor status bar customizations
Copyright (c) 2015-2017 ek9 dev@ek9.co (https://ek9.co).
Copyright (c) 2014 Bruno Sutic and various contributors for portions of code from tmux-sensible project.
Licensed under MIT License.