Adding macho man scripts.

This commit is contained in:
Derek Taylor
2020-07-11 17:57:38 -05:00
parent 4680c2e1ec
commit c015df8e92
2 changed files with 37 additions and 0 deletions
Executable
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
manual=$(apropos -s ${SECTION:-''} ${@:-.} | \
grep -v -E '^.+ \(0\)' |\
awk '{print $2 " " $1}' | \
sort | \
dmenu -i -p "Manual: " | \
sed -E 's/^\((.+)\)/\1/')
if [ -z "$MANUAL" ]; then
man -T${FORMAT:-pdf} $manual | ${READER:-zathura -}
fi