From 4690c89f8fabffa03dbd84f13d7799cb0abf372a Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 27 May 2020 10:55:06 +0200 Subject: [PATCH] Support refresh/re-executing via "r" key This is useful if any of the screen information (like e.g. network information) might be outdated --- grml-quickconfig | 5 +++++ quickconfig/001-heading.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/grml-quickconfig b/grml-quickconfig index 26d0ca9..9da12b0 100755 --- a/grml-quickconfig +++ b/grml-quickconfig @@ -163,6 +163,11 @@ while : ; do echo $INPUT break ;; + [rR]) + echo $INPUT + exec grml-quickconfig + break + ;; [${(k)keys}]) echo $INPUT eval ${keymap[$INPUT]} || true diff --git a/quickconfig/001-heading.sh b/quickconfig/001-heading.sh index 6d9aba2..447ebfe 100644 --- a/quickconfig/001-heading.sh +++ b/quickconfig/001-heading.sh @@ -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; ' -- 2.1.4