diff options
author | Daniel Friesel <derf@finalrewind.org> | 2012-07-29 16:23:52 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2012-07-29 16:30:15 +0200 |
commit | 2e9a77a8dba5b49417ef01452d8278cc9f70e1db (patch) | |
tree | deae930b998d904085f03755a21e8879e80144ba /helpers/unmerged-completions | |
parent | 64a586e3e2b834cb9e26d9b78d06b9786e9eebea (diff) |
add unmerged-completions helper
Diffstat (limited to 'helpers/unmerged-completions')
-rwxr-xr-x | helpers/unmerged-completions | 12 |
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 |