Lines Matching refs:cur
38 local field_vals= cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
59 COMPREPLY=( $(compgen -f -- "$cur") )
69 comps=$(compgen -d -- "$cur")
73 comps=$(compgen -f -- "$cur")
101 if ! [[ $cur =~ '\\' ]]; then
102 cur="$(printf '%q' $cur)"
119 COMPREPLY=( $(compgen -o filenames -W '$comps' -- "$cur") )
123 if [[ $cur = -* ]]; then
124 COMPREPLY=( $(compgen -W '${OPTS[*]}' -- "$cur") )
126 elif [[ $cur = *=* ]]; then
128 COMPREPLY=( $(compgen -W '${field_vals[*]}' -- "${cur#=}") )
129 elif [[ $cur = /dev* ]]; then
131 COMPREPLY=( $(compgen -f -- "${cur}") )
132 elif [[ $cur = /* ]]; then
138 COMPREPLY=( $(compgen -W '${field_vals[*]}' -- "${cur}") )
141 COMPREPLY=( $(compgen -f -- "${cur}") )
145 COMPREPLY=( $(compgen -W '${field_vals[*]}' -- "$cur") )
149 COMPREPLY=( $(compgen -W '${field_vals[*]}' -S= -- "$cur") )