set -g default-terminal "tmux-256color" set-option -sa terminal-features ',alacritty:RGB' # set-option -sa terminal-overrides ",screen:Tc" ## Vim user config #Prefix is Ctrl-a unbind C-b set -g prefix C-space bind C-space send-prefix set-option -g status-position top # Start windows and panes at 1, not 0 set -g base-index 1 set -g pane-base-index 1 set-window-option -g pane-base-index 1 set-option -g renumber-windows on # C-space C-space will swap to last used window bind-key C-space last-window set -sg escape-time 1 #set -g base-index 1 #setw -g pane-base-index 1 #Mouse works as expected set -g mouse on #setw -g mode-mouse on #set -g mouse-select-pane on #set -g mouse-resize-pane on #set -g mouse-select-window on set -g monitor-activity on set -g visual-activity on setw -g mode-keys vi set -g history-limit 10000 # y and p as in vim bind Escape copy-mode unbind p bind p paste-buffer bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel bind-key -T copy-mode-vi 'Space' send -X halfpage-down bind-key -T copy-mode-vi 'Bspace' send -X halfpage-up # Remap previous window bind b previous-window # easy-to-remember split pane commands bind | split-window -h bind - split-window -v unbind '"' unbind % ## Plugins # Supports `github_username/repo` or full git repo URLs set -g @tpm_plugins 'tmux-plugins/tpm' set -g @tpm_plugins 'tmux-plugins/tmux-sensible' set -g @plugin 'christoomey/vim-tmux-navigator' set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'egel/tmux-gruvbox' set -g @tmux-gruvbox 'dark' # or 'light' # Keep this line at the very bottom of tmux.conf. run-shell '~/.tmux/plugins/tpm/tpm'