summaryrefslogtreecommitdiff
path: root/helpers/unmerged-completions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-07-29 16:23:52 +0200
committerDaniel Friesel <derf@finalrewind.org>2012-07-29 16:30:15 +0200
commit2e9a77a8dba5b49417ef01452d8278cc9f70e1db (patch)
treedeae930b998d904085f03755a21e8879e80144ba /helpers/unmerged-completions
parent64a586e3e2b834cb9e26d9b78d06b9786e9eebea (diff)
add unmerged-completions helper
Diffstat (limited to 'helpers/unmerged-completions')
-rwxr-xr-xhelpers/unmerged-completions12
1 files changed, 12 insertions, 0 deletions
diff --git a/helpers/unmerged-completions b/helpers/unmerged-completions
new file mode 100755
index 0000000..b202a1f
--- /dev/null
+++ b/helpers/unmerged-completions
@@ -0,0 +1,12 @@
+#!/usr/bin/env zsh
+
+avail=($(echo ~/var/source/zsh/Completion/**/*(-.N:t)))
+
+for file in etc/completions/*(:t); do
+ if (( $avail[(I)$file] )); then
+ echo -n $'\e[0;32m'
+ else
+ echo -n $'\e[0;31m'
+ fi
+ echo ${file}
+done