From: Michael Prokop Date: Wed, 27 May 2020 08:55:06 +0000 (+0200) Subject: Support refresh/re-executing via "r" key X-Git-Tag: v0.19~5 X-Git-Url: http://git.grml.org/?p=grml-quickconfig.git;a=commitdiff_plain;h=4690c89f8fabffa03dbd84f13d7799cb0abf372a Support refresh/re-executing via "r" key This is useful if any of the screen information (like e.g. network information) might be outdated --- 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; '