summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/woman3
1 files changed, 2 insertions, 1 deletions
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"
}