Support refresh/re-executing via "r" key
authorMichael Prokop <mika@grml.org>
Wed, 27 May 2020 08:55:06 +0000 (10:55 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 27 May 2020 08:56:58 +0000 (10:56 +0200)
This is useful if any of the screen information (like e.g.
network information) might be outdated

grml-quickconfig
quickconfig/001-heading.sh

index 26d0ca9..9da12b0 100755 (executable)
@@ -163,6 +163,11 @@ while : ; do
             echo $INPUT
             break
             ;;
+        [rR])
+            echo $INPUT
+            exec grml-quickconfig
+            break
+            ;;
         [${(k)keys}])
             echo $INPUT
             eval ${keymap[$INPUT]} || true
index 6d9aba2..447ebfe 100644 (file)
@@ -2,7 +2,7 @@
 # print the heading
 LINE='print_line "Welcome to grml-quickconfig";
 print_line "Press a highlighted key to perform an action, or press";
-print_line "/Return/ or ^q to go back to the shell.";
+print_line "/Return/ or ^q to go back to the shell, or ^r to refresh.";
 print_delim;
 '