summaryrefslogtreecommitdiff
path: root/.local/bin/woman
blob: c68728d372d6fdd55b4099eb91a69ecb118191e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/local/bin/andy

# TODO: -s flag to apropos

apropos .
| sed -E 's/ (\([^)]+\))\s*-/\1 —/'
| sort
| osel
| sed 's/\s.*//'
| read page

if test -n $page -a ! -t 2 {
	man -Tpdf $page | zathura -
} else if test -n $page -a -t 2 {
	man $page
}