From 1f68473e23c12f56e40f382c44337476b8e1fa48 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Fri, 18 Oct 2019 11:17:31 +0100 Subject: [PATCH] Don't install tpm if it's already there --- install | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/install b/install index b54f5aa..369c820 100755 --- a/install +++ b/install @@ -72,10 +72,12 @@ git config --global user.name "Paul Walker" # git config --global user.signingKey FEF9C627 # git config --global commit.gpgsign true -git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm -if [ "$TMUX" != "" ] ; then - # If we're currently in tmux, source the new file. - tmux source-file ~/.tmux.conf +if [ ! -d ~/.tmux/plugins/tpm ] ; then + git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm + if [ "$TMUX" != "" ] ; then + # If we're currently in tmux, source the new file. + tmux source-file ~/.tmux.conf + fi fi ./install-vim