diff options
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/woman | 6 |
1 files changed, 3 insertions, 3 deletions
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 - } |