From 3af5d17c747708f07dee0e9c18059ae8f43f1b34 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 11 Sep 2017 11:12:18 -0400 Subject: Update the vimrc when the repository is updated, not just on initial pull --- mkshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mkshrc b/mkshrc index 3e2453c..e6dd331 100644 --- a/mkshrc +++ b/mkshrc @@ -468,7 +468,12 @@ updatevimrc() { OLDWD="$(pwd)" cd $HOME git clone https://git.riedstra.us/mitch/vim-cfg .vim - cd $HOME/.vim + if [ $? -gt 0 ] ; then + cd $HOME/.vim + git pull origin master + else + cd $HOME/.vim + fi ./setup.sh && \ ./link-vimrc.sh cd $OLDWD -- cgit v1.2.3