Add tpm to tmux config
This commit is contained in:
parent
f487bba02b
commit
2b62c41f23
@ -6,9 +6,9 @@ set -g prefix C-a
|
|||||||
unbind C-b
|
unbind C-b
|
||||||
|
|
||||||
# More responsive with sending commands
|
# More responsive with sending commands
|
||||||
set -sg escape-time 1
|
set -sg escape-time 0
|
||||||
|
|
||||||
set-option -g history-limit 10000
|
set-option -g history-limit 50000
|
||||||
|
|
||||||
# Start counting at 0, easier for keyboard shortcuts
|
# Start counting at 0, easier for keyboard shortcuts
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
@ -30,6 +30,7 @@ set-option -g mouse on
|
|||||||
# Colors
|
# Colors
|
||||||
################################################################################
|
################################################################################
|
||||||
set -g default-terminal "screen-256color"
|
set -g default-terminal "screen-256color"
|
||||||
|
set -g terminal-overrides ",xterm-256color:Tc"
|
||||||
|
|
||||||
set -g status-fg white
|
set -g status-fg white
|
||||||
set -g status-bg black
|
set -g status-bg black
|
||||||
@ -51,15 +52,15 @@ bind-key -T copy-mode-vi 'y' send -X copy-selection
|
|||||||
#bind-key -T copy-mode-vi MouseDragEnd1Pane send -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
|
# macOS
|
||||||
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
|
#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"
|
#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
|
||||||
|
|
||||||
# Reload config with prefix r
|
# Reload config with prefix r
|
||||||
bind r source-file ~/.tmux.conf \; display "Reloaded"
|
bind r source-file $XDG_CONFIG_HOME/tmux/tmux.conf \; display "Reloaded"
|
||||||
|
|
||||||
# Send prefix to the terminal
|
# Send prefix to the terminal
|
||||||
bind C-a send-prefix
|
bind C-a send-prefix
|
||||||
@ -82,3 +83,9 @@ 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 :+
|
||||||
|
|
||||||
|
set-environment -g TMUX_PLUGIN_MANAGER_PATH $XDG_CONFIG_HOME/tmux/plugins
|
||||||
|
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
|
|
||||||
|
run $XDG_CONFIG_HOME/tmux/plugins/tpm/tpm
|
||||||
Loading…
Reference in New Issue
Block a user