diff options
Diffstat (limited to 'completions/interdiff')
-rw-r--r-- | completions/interdiff | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/interdiff b/completions/interdiff index cf71002e..e7923751 100644 --- a/completions/interdiff +++ b/completions/interdiff @@ -6,7 +6,7 @@ _interdiff() _init_completion -s || return case $prev in - -U|--unified|-p|--strip-match|-d|--drop-context) + --unified|--strip-match|--drop-context|-!(-*)[Upd]) return ;; esac @@ -14,13 +14,13 @@ _interdiff() $split && return if [[ $cur == -* ]]; then - COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) + COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) [[ $COMPREPLY == *= ]] && compopt -o nospace return fi local exts='@(?(d)patch|dif?(f))' word - for word in ${words[@]}; do + for word in "${words[@]}"; do if [[ $word == -@(z|-decompress) ]]; then exts+='?(.@(gz|bz2))' break |