From ce522b0998bfcc8f97630e2885a3651ebdeae563 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Fri, 8 Dec 2017 16:19:51 +0800 Subject: [PATCH] Add tmux plugin manager Signed-off-by: Ein Verne --- tmux/.tmux.conf | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 39ff1f1..83d8aed 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -104,6 +104,21 @@ set -g message-fg white set -g message-bg colour22 set -g message-attr bright +# automatic install tpm +if "test ! -d ~/.tmux/plugins/tpm" \ + "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" -# -------------------------------- color end -------------------------------- + +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-yank' + +# Other examples: +# set -g @plugin 'github_username/plugin_name' +# set -g @plugin 'git@github.com/user/plugin' +# set -g @plugin 'git@bitbucket.com/user/plugin' + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm'