linux-config/files/dotfiles/tmux.conf
2021-10-26 14:31:52 +03:00

43 lines
1 KiB
Bash

# Send prefix
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
# Use Alt-arrow keys to switch panes
bind-key h select-pane -L
bind-key l select-pane -R
bind-key k select-pane -U
bind-key j select-pane -D
# Shift arrow to switch windows
bind -n M-h previous-window
bind -n M-l next-window
# Mouse mode
setw -g mouse on
# Set easier window split keys
bind-key | split-window -h
bind-key - split-window -v
# Easy config reload
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded."
# Nord theme
set -g @plugin "arcticicestudio/nord-tmux"
# Tmux yank (For clipboard integration)
set -g @plugin 'tmux-plugins/tmux-yank'
# Mouse select to clipboard
set -g @yank_selection_mouse 'clipboard' # or 'primary' or 'secondary'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Buffer line size (History)
set -g history-limit 5000
# Use Ctrl-K to clear buffer
bind -n C-k clear-history
# Default Colors
set -g default-terminal "xterm-256color"