diff options
Diffstat (limited to 'completions/hddtemp')
-rw-r--r-- | completions/hddtemp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/hddtemp b/completions/hddtemp index 123b74a1..b7487cc9 100644 --- a/completions/hddtemp +++ b/completions/hddtemp @@ -6,19 +6,19 @@ _hddtemp() _init_completion -s || return case $prev in - -f|--file) + --file|-!(-*)f) _filedir db return ;; - -l|--listen) + --listen|-!(-*)l) _ip_addresses return ;; - -u|--unit) - COMPREPLY=( $( compgen -W 'C F' -- "$cur" ) ) + --unit|-!(-*)u) + COMPREPLY=( $(compgen -W 'C F' -- "$cur") ) return ;; - -p|--port|-s|--separator|-S|--syslog|-v|--version|-h|-\?|--help) + --port|--separator|--syslog|--version|--help|-!(-*)[psSvh?]) return ;; esac @@ -26,7 +26,7 @@ _hddtemp() $split && return if [[ $cur == -* ]]; then - COMPREPLY=( $( compgen -W '$( _parse_help "$1" ) --help' -- "$cur" ) ) + COMPREPLY=( $(compgen -W '$(_parse_help "$1") --help' -- "$cur") ) [[ $COMPREPLY == *= ]] && compopt -o nospace else cur=${cur:=/dev/} |