/bash_completion_lib/complete -o filenames/yum-arch
http://github.com/brinkman83/bashrc · #! · 27 lines · 19 code · 8 blank · 0 comment · 0 complexity · 3c2c752296977f319b5d70a26ed2c084 MD5 · raw file
- # yum-arch(8) completion
- comp_include _filedir _get_cword
- _yum_arch()
- {
- local cur
- COMPREPLY=()
- cur=`_get_cword`
- case "$cur" in
- -*)
- COMPREPLY=( $( compgen -W '-d -v -vv -n -c -z -s -l -q' -- $cur ) )
- ;;
- *)
- _filedir -d
- ;;
- esac
- return 0
- } # _yum_arch()
- comp_install -F _yum_arch # Make completion persistent for subsequent invocations
- _yum_arch # Generate completions for first invocation