Skip to content

Commit 6528649

Browse files
committed
zfsbootmenu-help: use cat in place of less
less-633, when invoked under fzf as a preview helper, does not render any text. The previously known-good version of less was 608. Advanced functionality such as searching or paging is not needed or even functional in fzf. GNU cat and Busybox cat preserve embedded ansi color styling.
1 parent 22af458 commit 6528649

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

zfsbootmenu/install-helpers.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ zfsbootmenu_essential_binaries=(
3636
"dmesg"
3737
"fzf"
3838
"setsid"
39+
"cat"
3940
)
4041

4142
# shellcheck disable=SC2034

zfsbootmenu/libexec/zfsbootmenu-help

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ while getopts "lL:s:" opt; do
8080
exit
8181
;;
8282
s)
83-
less -f -n -r "${OPTARG}"
83+
cat "${OPTARG}"
8484
exit
8585
;;
8686
?)

0 commit comments

Comments
 (0)