[Bash-completion-commits] [bash-completion] 02/02: 7z, adb: Trivial cleanups

Ville Skyttä scop-guest at moszumanska.debian.org
Sat Jul 19 16:16:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit d259e7175851f08cda10ae6c279ab1d0e7bc8045
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Jul 19 19:15:49 2014 +0300

    7z, adb: Trivial cleanups
---
 completions/7z  | 2 +-
 completions/adb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/completions/7z b/completions/7z
index 56e37a6..f78c282 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 80c9627..1ce0158 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list