summaryrefslogtreecommitdiff
path: root/completions/aclocal
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-10-12 23:01:10 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-10-12 23:01:10 +0300
commit156656c16d4302d059221a06eb7c1bd460e41fe9 (patch)
tree87b9edeaab27b4d7a5ae70644a5b7803c3cc7c25 /completions/aclocal
parentd3d6476f6c24cebb89e4712477e568dd5f5fbca8 (diff)
downloadbash-completion-156656c16d4302d059221a06eb7c1bd460e41fe9.tar.gz
Split/rename many completions into per-command files.
Diffstat (limited to 'completions/aclocal')
-rw-r--r--completions/aclocal41
1 files changed, 41 insertions, 0 deletions
diff --git a/completions/aclocal b/completions/aclocal
new file mode 100644
index 00000000..6c61870b
--- /dev/null
+++ b/completions/aclocal
@@ -0,0 +1,41 @@
+# aclocal(1) completion
+
+_aclocal()
+{
+ local cur prev words cword split
+ _init_completion -s || return
+
+ case "$prev" in
+ --help|--print-ac-dir|--version)
+ return 0
+ ;;
+ --acdir|-I)
+ _filedir -d
+ return 0
+ ;;
+ --output)
+ _filedir
+ return 0
+ ;;
+ --warnings|-W)
+ local cats=( syntax unsupported )
+ COMPREPLY=( $( compgen -W \
+ '${cats[@]} ${cats[@]/#/no-} all none error' -- "$cur" ) )
+ return 0
+ ;;
+ esac
+
+ $split && return 0
+
+ COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
+ [[ $COMPREPLY == *= ]] && compopt -o nospace
+} &&
+complete -F _aclocal aclocal aclocal-1.11
+
+# Local variables:
+# mode: shell-script
+# sh-basic-offset: 4
+# sh-indent-comment: t
+# indent-tabs-mode: nil
+# End:
+# ex: ts=4 sw=4 et filetype=sh