Add plugins to tmux

main
Buddy Sandidge 4 years ago
parent c6c9bf9649
commit 2d436b859f

@ -18,8 +18,8 @@ set-window-option -g pane-base-index 1
set -g status-interval 20 set -g status-interval 20
set -g status-justify centre set -g status-justify centre
set -g status-left "#[fg=colour75]#S:#I.#P" #colour75 is an awesome blue set -g status-left "#[fg=colour75]#S:#I.#P"
set -g status-right "#[fg=colour75]%F %l:%M%P" #colour75 is an awesome blue set -g status-right "#{prefix_highlight} #[fg=colour75]#S:#I.#P %F %l:%M%P"
setw -g monitor-activity on setw -g monitor-activity on
set -g visual-activity on set -g visual-activity on
@ -38,6 +38,7 @@ set -g status-bg black
################################################################################ ################################################################################
# Custom bindings # Custom bindings
################################################################################ ################################################################################
# Have buffers be more like vim buffers # Have buffers be more like vim buffers
setw -g mode-keys vi setw -g mode-keys vi
unbind [ unbind [
@ -47,14 +48,6 @@ bind p paste-buffer
bind-key -T copy-mode-vi 'v' send -X begin-selection bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection bind-key -T copy-mode-vi 'y' send -X copy-selection
# Linux
#bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
#bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "xclip -in -selection clipboard"
# macOS
#bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
#bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "pbcopy"
# Make switch session shortcut repeatable # Make switch session shortcut repeatable
bind -r ( switch-client -p bind -r ( switch-client -p
bind -r ) switch-client -n bind -r ) switch-client -n
@ -65,27 +58,27 @@ bind r source-file $HOME/.tmux.conf \; display "Reloaded"
# Send prefix to the terminal # Send prefix to the terminal
bind C-a send-prefix bind C-a send-prefix
# Create panes bindings
bind | split-window -h
bind \\ split-window -h
bind - split-window -v
# Vim bindings
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind -r C-h select-window -t :- bind -r C-h select-window -t :-
bind -r C-l select-window -t :+ bind -r C-l select-window -t :+
################################################################################
# Plugins
################################################################################
set-environment -g TMUX_PLUGIN_MANAGER_PATH $XDG_CONFIG_HOME/tmux/plugins set-environment -g TMUX_PLUGIN_MANAGER_PATH $XDG_CONFIG_HOME/tmux/plugins
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'tmux-plugins/tmux-yank'
# O will open a file in an editor
set -g @open-editor O
set -g @prefix_highlight_show_copy_mode 'on'
set -g @prefix_highlight_copy_mode_attr 'fg=black,bg=yellow,bold' # default is 'fg=default,bg=yellow'
set -g @prefix_highlight_show_sync_mode 'on'
set -g @prefix_highlight_sync_mode_attr 'fg=black,bg=green' # default is 'fg=default,bg=yellow'
run $XDG_CONFIG_HOME/tmux/plugins/tpm/tpm run $XDG_CONFIG_HOME/tmux/plugins/tpm/tpm

Loading…
Cancel
Save