summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/woman11
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/woman b/.local/bin/woman
new file mode 100755
index 0000000..b63dac2
--- /dev/null
+++ b/.local/bin/woman
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+apropos . \
+| sed -E 's/ (\([^)]+\))\s*-/\1 —/' \
+| sort \
+| osel \
+| sed -E 's/([^(]+)\(([^)]+)\).*/\2 \1/' \
+| {
+ read p s
+ [ -n "$p" -a -n "$s" ] && man -Tpdf "$p" "$s" | zathura -
+}