2020-05-07 14:34:22 +02:00
|
|
|
# Start window and pane indices at 1.
|
|
|
|
set -g base-index 1
|
|
|
|
set -g pane-base-index 1
|
|
|
|
|
|
|
|
# Status bar styling and content.
|
|
|
|
set -g status-left '#S '
|
|
|
|
|
2020-06-02 18:29:34 +02:00
|
|
|
# Plugins
|
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
2021-01-28 17:39:00 +01:00
|
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
|
|
|
2020-06-02 18:29:34 +02:00
|
|
|
|
2020-05-13 10:54:49 +02:00
|
|
|
# Theme
|
|
|
|
set -g @plugin "arcticicestudio/nord-tmux"
|
|
|
|
|
2021-01-28 17:39:00 +01:00
|
|
|
# Resurect vim sessions and pane contents
|
|
|
|
set -g @continuum-restore 'on'
|
|
|
|
set -g @resurrect-strategy-vim 'session'
|
|
|
|
set -g @resurrect-capture-pane-contents 'on'
|
|
|
|
|
|
|
|
|
2020-06-15 16:03:58 +02:00
|
|
|
# Vim mod
|
|
|
|
bind-key h select-pane -L
|
|
|
|
bind-key j select-pane -D
|
|
|
|
bind-key k select-pane -U
|
|
|
|
bind-key l select-pane -R
|
|
|
|
|
2020-10-24 08:05:49 +02:00
|
|
|
bind-key H resize-pane -L
|
|
|
|
bind-key J resize-pane -D
|
|
|
|
bind-key K resize-pane -U
|
|
|
|
bind-key L resize-pane -R
|
|
|
|
|
2020-05-07 14:34:22 +02:00
|
|
|
# Don't prompt to kill panes/windows.
|
|
|
|
bind-key x kill-pane
|
|
|
|
bind-key & kill-window
|
|
|
|
|
|
|
|
# More intuitive split-window mappings.
|
|
|
|
bind "\\" split-window -h
|
|
|
|
bind - split-window -v
|
|
|
|
|
|
|
|
# Maximize pane, e.g. for copying.
|
|
|
|
bind-key z resize-pane -Z
|
|
|
|
|
2021-01-06 08:41:25 +01:00
|
|
|
# Window title string (uses statusbar variables)
|
|
|
|
set -g set-titles-string '#T'
|
|
|
|
|
2020-05-07 14:34:22 +02:00
|
|
|
# Reload tmux conf.
|
|
|
|
unbind r
|
|
|
|
bind r source-file ~/.tmux.conf\; display "Reloaded conf."
|
2020-06-02 18:29:34 +02:00
|
|
|
|
|
|
|
run -b '~/.tmux/plugins/tpm/tpm'
|