From abcc767eba2850261cd38d98902b57d5898c1a49 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 23 Nov 2023 19:32:26 +0100 Subject: woman: Simplify script --- .local/bin/woman | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.local') diff --git a/.local/bin/woman b/.local/bin/woman index b63dac2..f8469b8 100755 --- a/.local/bin/woman +++ b/.local/bin/woman @@ -4,8 +4,8 @@ apropos . \ | sed -E 's/ (\([^)]+\))\s*-/\1 —/' \ | sort \ | osel \ -| sed -E 's/([^(]+)\(([^)]+)\).*/\2 \1/' \ +| sed 's/\s.*//' \ | { - read p s - [ -n "$p" -a -n "$s" ] && man -Tpdf "$p" "$s" | zathura - + IFS= read -r page + [ -n "$page" ] && man -Tpdf "$page" | zathura - } -- cgit v1.2.3