PageRenderTime 97ms CodeModel.GetById 94ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1# yum-arch(8) completion
 2
 3
 4comp_include _filedir _get_cword
 5
 6
 7_yum_arch()
 8{
 9    local cur
10    COMPREPLY=()
11    cur=`_get_cword`
12
13    case "$cur" in
14    -*)
15        COMPREPLY=( $( compgen -W '-d -v -vv -n -c -z -s -l -q' -- $cur ) )
16        ;;
17    *)
18        _filedir -d
19        ;;
20    esac
21
22    return 0
23} # _yum_arch()
24
25comp_install -F _yum_arch  # Make completion persistent for subsequent invocations
26
27_yum_arch  # Generate completions for first invocation