From 27770e1e07da16dcd911a638434fd3dda3137db2 Mon Sep 17 00:00:00 2001 From: Dubiousjim Date: Mon, 1 Jul 2013 17:14:17 -0400 Subject: update-conf: add vimdiff action --- update-conf.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/update-conf.in b/update-conf.in index c3ba366..18e4e7d 100644 --- a/update-conf.in +++ b/update-conf.in @@ -51,6 +51,11 @@ while true; do shift done +if which vimdiff >/dev/null; then + vflag=", Vimdiff old new" + vflag2="/v" +fi + for apknew in $(find "$ROOT/etc" -name '*.apk-new') ; do p="${apknew%.apk-new}" f="${p#${ROOT}/}" @@ -75,7 +80,7 @@ for apknew in $(find "$ROOT/etc" -name '*.apk-new') ; do # ask user what to do with the file while [ -z "$choice" ] ; do echo "New $p available:" - echon "Quit, Next, Show diff, Edit new, Zap new, Use new (q/n/s/e/z/u) [s]: " + echon "Quit, Next, Show diff, Edit new${vflag}, Zap new, Use new (q/n/s/e${vflag2}/z/u) [s]: " default_read choice "s"