mirror of
https://github.com/nix-community/home-manager
synced 2024-12-22 11:03:13 +00:00
a1162e04b3
Previously, it was not possible to set an arbitrary tmux prefix since CTRL was hardcoded in the module. To avoid breaking existing configs, a new option was implemented that conveniently uses the tmux terminology but defaults to null and does not affect previous behavior when set to null. The behavior for the shortcut option was not completely replicated, i.e., it does not bind "b" to send-prefix but stick to the default of the prefix binding sending prefix (C-b C-b instead of C-b b) and it does not bind repetition of the prefix (C-b C-b) to `last-window`, both of these bring the option closer to the default tmux configuration. Fixes #1237
33 lines
587 B
Text
33 lines
587 B
Text
# ============================================= #
|
|
# Start with defaults from the Sensible plugin #
|
|
# --------------------------------------------- #
|
|
run-shell @sensible_rtp@
|
|
# ============================================= #
|
|
|
|
set -g default-terminal "screen"
|
|
set -g base-index 0
|
|
setw -g pane-base-index 0
|
|
|
|
|
|
|
|
|
|
|
|
set -g status-keys emacs
|
|
set -g mode-keys emacs
|
|
|
|
|
|
|
|
# rebind main key: C-a
|
|
unbind C-b
|
|
set -g prefix C-a
|
|
bind a send-prefix
|
|
bind C-a last-window
|
|
|
|
|
|
|
|
|
|
setw -g aggressive-resize off
|
|
setw -g clock-mode-style 12
|
|
set -s escape-time 500
|
|
set -g history-limit 2000
|
|
|