[Bash-completion-commits] [bash-completion] 01/01: bzip2, gzip, lzma: Cleanups.

Ville Skyttä scop-guest at alioth.debian.org
Fri Aug 23 10:33:41 UTC 2013


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 61d1d7df42cace84c5d706b43f44ea2083c54723
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Aug 23 13:33:06 2013 +0300

    bzip2, gzip, lzma: Cleanups.
---
 completions/bzip2 |    4 +---
 completions/gzip  |    4 +---
 completions/lzma  |    4 +---
 3 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/completions/bzip2 b/completions/bzip2
index 1bc9828..7dc7eb4 100644
--- a/completions/bzip2
+++ b/completions/bzip2
@@ -25,9 +25,7 @@ _bzip2()
     local IFS=$'\n' xspec="*.bz2"
 
     if [[ "$prev" == --* ]]; then
-        [[ "$prev" == --decompress || \
-            "$prev" == --list || \
-            "$prev" == --test ]] && xspec="!"$xspec
+        [[ "$prev" == --@(decompress|list|test) ]] && xspec="!"$xspec
         [[ "$prev" == --compress ]] && xspec=
     elif [[ "$prev" == -* ]]; then
         [[ "$prev" == -*[dt]* ]] && xspec="!"$xspec
diff --git a/completions/gzip b/completions/gzip
index 35e5f23..300785d 100644
--- a/completions/gzip
+++ b/completions/gzip
@@ -25,9 +25,7 @@ _gzip()
     local IFS=$'\n' xspec="*.@(gz|t[ag]z)"
 
     if [[ "$prev" == --* ]]; then
-        [[ "$prev" == --decompress || \
-            "$prev" == --list || \
-            "$prev" == --test ]] && xspec="!"$xspec
+        [[ "$prev" == --@(decompress|list|test) ]] && xspec="!"$xspec
         [[ "$prev" == --force ]] && xspec=
     elif [[ "$prev" == -* ]]; then
         [[ "$prev" == -*[dlt]* ]] && xspec="!"$xspec
diff --git a/completions/lzma b/completions/lzma
index 30566ed..b5b9ece 100644
--- a/completions/lzma
+++ b/completions/lzma
@@ -17,9 +17,7 @@ _lzma()
     local IFS=$'\n' xspec="*.@(lzma|tlz)"
 
     if [[ "$prev" == --* ]]; then
-        [[ "$prev" == --decompress || \
-            "$prev" == --list || \
-            "$prev" == --test ]] && xspec="!"$xspec
+        [[ "$prev" == --@(decompress|list|test) ]] && xspec="!"$xspec
         [[ "$prev" == --compress ]] && xspec=
     elif [[ "$prev" == -* ]]; then
         [[ "$prev" == -*[dt]* ]] && xspec="!"$xspec

-- 
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