about summary refs log blame commit diff stats
path: root/config/ksh/functions/update_completion_manpages
blob: dc4e77a82203e320b13c38c5558ead7f898eaece (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                             
#!/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
}