/bash_completion_lib/complete/tcpnice
http://github.com/brinkman83/bashrc · #! · 25 lines · 18 code · 7 blank · 0 comment · 0 complexity · 38817ea7b9a0702fdc43455b05ba55a8 MD5 · raw file
- # tcpnice(8) completion
- comp_include _get_cword
- _tcpnice()
- {
- local cur
- COMPREPLY=()
- cur=`_get_cword`
- prev=${COMP_WORDS[COMP_CWORD-1]}
- case "$prev" in
- -i)
- _interfaces
- return 0
- ;;
- esac
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '-A -I -M -i' -- $cur ) )
- fi
- } # _tcpnice()