-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ zfsbootmenu_essential_binaries=( | |
"dmesg" | ||
"fzf" | ||
"setsid" | ||
"cat" | ||
) | ||
|
||
# shellcheck disable=SC2034 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,7 @@ while getopts "lL:s:" opt; do | |
exit | ||
;; | ||
s) | ||
less -f -n -r "${OPTARG}" | ||
cat "${OPTARG}" | ||
exit | ||
;; | ||
?) | ||
|