summaryrefslogtreecommitdiff
path: root/etc/functions/need-comp
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/need-comp')
-rw-r--r--etc/functions/need-comp9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/functions/need-comp b/etc/functions/need-comp
new file mode 100644
index 0000000..a38b561
--- /dev/null
+++ b/etc/functions/need-comp
@@ -0,0 +1,9 @@
+## vim:ft=zsh
+
+check_comp() {
+ ((! $+_comps[$1])) && print $1
+}
+
+{
+ for f ($^path/*(N:t)) check_comp $f
+} | sort