diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2017-09-11 11:12:18 -0400 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2017-09-11 11:12:18 -0400 |
| commit | 3af5d17c747708f07dee0e9c18059ae8f43f1b34 (patch) | |
| tree | 2b06b590c04efabdbe7f0a1fc38c42f3bbdcc167 | |
| parent | ca0d6bcecaebf857a8006d7c356c83df61c56ea8 (diff) | |
| download | dotfiles-3af5d17c747708f07dee0e9c18059ae8f43f1b34.tar.gz dotfiles-3af5d17c747708f07dee0e9c18059ae8f43f1b34.tar.xz | |
Update the vimrc when the repository is updated, not just on initial pull
| -rw-r--r-- | mkshrc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |
