2012-09-02 22:30:09 +02:00
|
|
|
unbind C-b
|
2012-09-04 13:54:30 +02:00
|
|
|
set-option -g prefix ^A
|
2012-09-02 22:30:09 +02:00
|
|
|
bind a send-prefix
|
|
|
|
|
|
|
|
# Bind appropriate commands similar to screen.
|
|
|
|
# lockscreen ^X x
|
|
|
|
unbind ^X
|
|
|
|
bind ^X lock-server
|
|
|
|
unbind x
|
|
|
|
bind x lock-server
|
|
|
|
|
|
|
|
# screen ^C c
|
|
|
|
unbind ^C
|
|
|
|
bind ^C new-window
|
|
|
|
unbind c
|
|
|
|
bind c new-window
|
|
|
|
|
|
|
|
# detach ^D d
|
|
|
|
unbind ^D
|
|
|
|
bind ^D detach
|
|
|
|
|
|
|
|
# displays *
|
|
|
|
unbind *
|
|
|
|
bind * list-clients
|
|
|
|
|
|
|
|
# next ^@ ^N sp n
|
|
|
|
unbind ^@
|
|
|
|
bind ^@ next-window
|
|
|
|
unbind ^N
|
|
|
|
bind ^N next-window
|
|
|
|
unbind " "
|
|
|
|
bind " " next-window
|
|
|
|
unbind n
|
|
|
|
bind n next-window
|
|
|
|
|
|
|
|
# title A
|
|
|
|
unbind A
|
|
|
|
bind A command-prompt "rename-window %%"
|
|
|
|
|
|
|
|
# other ^A
|
|
|
|
unbind ^A
|
|
|
|
bind ^A last-window
|
|
|
|
|
|
|
|
# prev ^H ^P p ^?
|
|
|
|
unbind ^H
|
|
|
|
bind ^H previous-window
|
|
|
|
unbind ^P
|
|
|
|
bind ^P previous-window
|
|
|
|
unbind p
|
|
|
|
bind p previous-window
|
|
|
|
unbind BSpace
|
|
|
|
bind BSpace previous-window
|
|
|
|
|
|
|
|
# windows ^W w
|
|
|
|
unbind ^W
|
|
|
|
bind ^W list-windows
|
|
|
|
unbind w
|
|
|
|
bind w list-windows
|
2011-02-22 12:40:44 +01:00
|
|
|
|
2012-09-02 22:30:09 +02:00
|
|
|
# kill K k
|
|
|
|
unbind K
|
|
|
|
bind K confirm-before "kill-window"
|
|
|
|
unbind k
|
|
|
|
bind k confirm-before "kill-window"
|
|
|
|
|
|
|
|
# redisplay ^L l
|
|
|
|
unbind ^L
|
|
|
|
bind ^L refresh-client
|
|
|
|
unbind l
|
|
|
|
bind l refresh-client
|
|
|
|
|
|
|
|
# " windowlist -b
|
|
|
|
unbind '"'
|
|
|
|
bind '"' choose-window
|
|
|
|
|
2012-09-04 13:53:33 +02:00
|
|
|
# use Escape for entering copy mode, like screen
|
|
|
|
bind Escape copy-mode
|
|
|
|
|
2013-03-06 20:36:26 +01:00
|
|
|
# less time between commands in a command sequence
|
|
|
|
set -s escape-time 0
|
|
|
|
|
2012-09-04 13:55:05 +02:00
|
|
|
# use vi-style key bindings
|
|
|
|
set-option -g mode-keys vi
|
|
|
|
|
2013-05-06 22:23:19 +02:00
|
|
|
# start numbering windows a 1
|
|
|
|
set -g base-index 1
|
|
|
|
|
2012-09-02 22:30:09 +02:00
|
|
|
# Rather than constraining window size to the maximum size of any client
|
|
|
|
# connected to the *session*, constrain window size to the maximum size
|
|
|
|
# of any client connected to *that window*. Much more reasonable.
|
|
|
|
set-window-option -g aggressive-resize on
|
|
|
|
|
2012-09-05 19:59:53 +02:00
|
|
|
# the visual bell causes a micro delay when typing. Tab completion triggers
|
|
|
|
# the bell and typing halts for a second and it's really annoying.
|
|
|
|
set-option -g visual-bell off
|
2011-02-22 12:40:44 +01:00
|
|
|
|
|
|
|
# status bar
|
|
|
|
set-option -g status-justify left
|
2012-09-02 22:30:09 +02:00
|
|
|
set-option -g status-left ''
|
|
|
|
set-option -g status-right '#[fg=colour47]#H #[fg=red]#(cut -d " " -f 1-3 /proc/loadavg) #[fg=colour227]%Y-%m-%d %H:%M#[default]'
|
2011-02-22 12:40:44 +01:00
|
|
|
|
2012-09-02 22:30:09 +02:00
|
|
|
# scrollback buffer
|
|
|
|
set-option -g history-limit 4096
|
2011-02-22 12:40:44 +01:00
|
|
|
|
2020-07-10 12:33:06 +02:00
|
|
|
# 2020-07-10: According to the tmux FAQ, inside tmux TERM must be "screen",
|
|
|
|
# "tmux" or similar (such as "tmux-256color"). Systems with older terminfo
|
|
|
|
# like CentOS 7 don't support tmux-256color so let's keep screen-256color
|
|
|
|
# for now.
|
2012-09-02 22:30:09 +02:00
|
|
|
set-option -g default-terminal "screen-256color"
|
2013-06-07 08:01:29 +02:00
|
|
|
|
|
|
|
#### COLOUR (Solarized dark)
|
|
|
|
|
|
|
|
# default statusbar colors
|
2019-04-30 08:11:59 +02:00
|
|
|
set-option -g status-style "bg=black fg=yellow default"
|
2013-06-07 08:01:29 +02:00
|
|
|
|
|
|
|
# default window title colors
|
2019-04-30 08:11:59 +02:00
|
|
|
set-window-option -g window-status-style "fg=brightblue bg=default"
|
2013-06-07 08:01:29 +02:00
|
|
|
|
|
|
|
# active window title colors
|
2019-04-30 08:11:59 +02:00
|
|
|
set-window-option -g window-status-current-style "fg=brightred bg=default"
|
2013-06-07 08:01:29 +02:00
|
|
|
|
|
|
|
# pane border
|
2019-04-30 08:11:59 +02:00
|
|
|
set-option -g pane-border-style "fg=black"
|
|
|
|
set-option -g pane-active-border-style "fg=brightgreen"
|
2013-06-07 08:01:29 +02:00
|
|
|
|
|
|
|
# message text
|
2019-04-30 08:11:59 +02:00
|
|
|
set-option -g message-style "bg=black fg=brightred"
|
2013-06-07 08:01:29 +02:00
|
|
|
|
|
|
|
# pane number display
|
|
|
|
set-option -g display-panes-active-colour blue #blue
|
|
|
|
set-option -g display-panes-colour brightred #orange
|
|
|
|
|
|
|
|
# clock
|
|
|
|
set-window-option -g clock-mode-colour green #green
|