From 56e90c6560a506debc3d0a52324816a442928ef4 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Mon, 21 Sep 2020 14:43:40 +0800 Subject: [PATCH] [feature] tpm auto installation --- tmux/tmux.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index ca70a2c..18b5f14 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -28,10 +28,10 @@ bind -n M-h select-pane -L bind -n M-j select-pane -D bind -n M-k select-pane -U bind -n M-l select-pane -R -bind -n M-H resize-pane -L 20 +bind -n M-H resize-pane -L 10 bind -n M-J resize-pane -D 10 bind -n M-K resize-pane -U 10 -bind -n M-L resize-pane -R 20 +bind -n M-L resize-pane -R 10 bind -n M-0 select-window -t :=0 bind -n M-1 select-window -t :=1 bind -n M-2 select-window -t :=2 @@ -70,6 +70,8 @@ set -g @yank_action 'copy-pipe' set -g @plugin 'kristijanhusak/tmux-simple-git-status' set -g @plugin 'klesh/tmux-open' set -g @plugin 'tmux-plugins/tmux-copycat' +if "test ! -d ~/.tmux/plugins/tpm" \ + "run 'git clone --depth 1 https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" run -b '~/.tmux/plugins/tpm/tpm' ############################