#!/bin/ksh update_completion_manpages() { rm $XDG_CACHE_HOME/ksh/precompletions/manpages for manpage in $(man -kw Nm~.); do basename $manpage|sed 's/\..*//'>>$XDG_CACHE_HOME/ksh/precompletions/manpages done }