about summary refs log tree commit diff stats
path: root/config/ksh/functions/update_completion_manpages
diff options
context:
space:
mode:
Diffstat (limited to 'config/ksh/functions/update_completion_manpages')
-rw-r--r--config/ksh/functions/update_completion_manpages8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/ksh/functions/update_completion_manpages b/config/ksh/functions/update_completion_manpages
new file mode 100644
index 0000000..dc4e77a
--- /dev/null
+++ b/config/ksh/functions/update_completion_manpages
@@ -0,0 +1,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
+}