From e492424567e294ad2b69aa29c31235ae025167ba Mon Sep 17 00:00:00 2001 From: CorteX Date: Sat, 9 Dec 2023 21:39:53 +0800 Subject: [PATCH] batman: redirect stderr to /dev/null when rendering preview To avoid preview being flooded by garbage warnings. --- src/batman.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/batman.sh b/src/batman.sh index bb85302..dc17459 100755 --- a/src/batman.sh +++ b/src/batman.sh @@ -75,7 +75,7 @@ if [[ "${#MAN_ARGS[@]}" -eq 0 ]] && [[ -z "$BATMAN_LEVEL" ]] && command -v "$EXE echo {1} \ | sed 's/, /\n/g;' \ | sed 's/\([^(]*\)(\([0-9A-Za-z ]\))/\2\t\1/g' \ - | BAT_STYLE=plain xargs -n2 batman --color=always --paging=never + | BAT_STYLE=plain xargs -n2 batman --color=always --paging=never 2> /dev/null ")" if [[ -z "$selected_page" ]]; then