diff --git a/completions/7z b/completions/7z index 56e37a6d..f78c2821 100644 --- a/completions/7z +++ b/completions/7z @@ -11,7 +11,7 @@ _7z() fi local mode - [[ ${words[1]} == @(a|d|u) ]] && mode=w || mode=r + [[ ${words[1]} == [adu] ]] && mode=w || mode=r case $cur in -ao*) diff --git a/completions/adb b/completions/adb index 80c96277..1ce01587 100644 --- a/completions/adb +++ b/completions/adb @@ -24,7 +24,7 @@ _adb() local cmd i for (( i=1; i < cword; i++ )); do - if [[ "${words[i]}" != -* && "${words[i-1]}" != -@(s|p) ]]; then + if [[ "${words[i]}" != -* && "${words[i-1]}" != -[sp] ]]; then cmd="${words[i]}" break fi