From d5c098d56c863edfc3f1418400e9c58c5e70bec4 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 25 Nov 2023 19:25:52 +0100 Subject: woman: Don’t open as PDF when stderr is a TTY MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local/bin/woman | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.local') diff --git a/.local/bin/woman b/.local/bin/woman index f8469b8..bbabc8e 100755 --- a/.local/bin/woman +++ b/.local/bin/woman @@ -7,5 +7,6 @@ apropos . \ | sed 's/\s.*//' \ | { IFS= read -r page - [ -n "$page" ] && man -Tpdf "$page" | zathura - + [ -n "$page" -a ! -t 2 ] && man -Tpdf "$page" | zathura - + [ -n "$page" -a -t 2 ] && man "$page" } -- cgit v1.2.3