From ea7e3635fe09c4510cffa3affc5f8eff670cf302 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 8 Jul 2019 22:06:56 +0200 Subject: [PATCH] Automate initial tmux plugin installation --- .config/tmux/tmux.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index e7e445f..0284ad6 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -56,6 +56,9 @@ set -g @plugin 'Morantron/tmux-fingers' set -g @plugin 'christoomey/vim-tmux-navigator' set -g @plugin 'tmux-plugins/tmux-resurrect' +if "test ! -d ${TMUX_PLUGIN_MANAGER_PATH}/tpm" \ + "run 'git clone https://github.com/tmux-plugins/tpm {TMUX_PLUGIN_MANAGER_PATH}/tpm && {TMUX_PLUGIN_MANAGER_PATH}/tpm/bin/install_plugins'" + run -b "${TMUX_PLUGIN_MANAGER_PATH}/tpm/tpm" #####################