[download]

local/bin/man-menu

   1 #!/bin/bash
   2 
   3 w=/usr/share/doc/arch-wiki/html/en
   4 
   5 {
   6     man -k .| tr ' ' \|            | sed '      s/$/ - Manpage/'  | column -t | tr \| ' '
   7     cd $w && find * -name '*.html' | sed 's/\.html$/ - Archwiki/' | column -t
   8 } | menu -i man -l 15 | while read i; do
   9     [[ $i == *Manpage  ]] && term man ${i// *} &
  10     [[ $i == *Archwiki ]] && chromium file://$w/${i// *}.html &
  11 done