37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# List of plugins
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
set -g @plugin 'odedlaz/tmux-onedark-theme'
|
|
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
|
set -g @onedark_date_format "%d.%m.%y"
|
|
|
|
set -g default-terminal "tmux-256color"
|
|
set -ga terminal-overrides ",alacritty:Tc,*256col*:Tc"
|
|
|
|
# Scroll History
|
|
set -g history-limit 50000
|
|
|
|
# Make mouse useful, tmux > 2.1 include select, resize pane/window and console wheel scroll
|
|
set -g mouse on
|
|
|
|
# Lower escape timing from 500ms to 100ms for quicker response to scroll-buffer access.
|
|
set -s escape-time 100
|
|
|
|
# Splitting
|
|
bind-key h split-window -h
|
|
bind-key v split-window -v
|
|
|
|
# Use Alt-arrow keys without prefix key to switch panes
|
|
bind -n M-Left select-pane -L
|
|
bind -n M-Right select-pane -R
|
|
bind -n M-Up select-pane -U
|
|
bind -n M-Down select-pane -D
|
|
|
|
# Resizing
|
|
bind-key M-j resize-pane -D
|
|
bind-key M-k resize-pane -U
|
|
bind-key M-h resize-pane -L
|
|
bind-key M-l resize-pane -R
|
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
run -b '~/.tmux/plugins/tpm/tpm'
|