22 lines
587 B
Bash
22 lines
587 B
Bash
# Stop tmux from override terminal colors
|
|
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
|
|
|
# Change tmux prefix
|
|
unbind C-b
|
|
set-option -g prefix C-a
|
|
bind-key C-a send-prefix
|
|
|
|
set -g status-style 'bg=#333333 fg=#5eacd3'
|
|
|
|
# Vim-like visual mode and yanking
|
|
set-window-option -g mode-keys vi
|
|
bind -T copy-mode-vi v send-keys -X begin-selection
|
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
|
|
|
# Vim-like pane switching
|
|
bind -r ^ last-window
|
|
bind -r k select-pane -U
|
|
bind -r j select-pane -D
|
|
bind -r h select-pane -L
|
|
bind -r l select-pane -R
|
|
|