Make the setup script better indicate what it did to the .vim files.
David Blume

David Blume commited on 2018-04-26 23:30:45
Showing 1 changed files, with 7 additions and 0 deletions.

... ...
@@ -58,6 +58,7 @@ do
58 58
     fi
59 59
 done
60 60
 
61
+if ! diff -qr $HOME/.vim .vim > /dev/null ; then
61 62
     if [ $DRY_RUN -eq 0 ]; then
62 63
         if [ -d $HOME/.vim ]; then
63 64
             mv $HOME/.vim $backup_dir
... ...
@@ -68,6 +69,12 @@ if [ $DRY_RUN -eq 0 ]; then
68 69
             cp -r -n $backup_dir/.vim $HOME
69 70
         fi
70 71
     fi
72
+    if [ -d $backup_dir/.vim ]; then
73
+        echo "# diff -qr \"$backup_dir/.vim\" \"$HOME/.vim\""
74
+    fi
75
+else
76
+    echo No change to the .vim directories.
77
+fi
71 78
 
72 79
 echo Your old dotfiles are backed up to $backup_dir
73 80
 
74 81