mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-13 17:50:56 +01:00
batman: redirect stderr to /dev/null when rendering preview
To avoid preview being flooded by garbage warnings.
This commit is contained in:
parent
a686d6742c
commit
e492424567
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user