summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_bzip2
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2004-01-21 13:53:28 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2004-01-21 13:53:28 +0000
commit63b336243fdf5e60058472fa456ed11e75280189 (patch)
treef101df4260c4cef5d32c63456ca98e23d6b54449 /Completion/Unix/Command/_bzip2
parent19309: add #q to the start of a glob qualifier in the -g argument (diff)
downloadzsh-63b336243fdf5e60058472fa456ed11e75280189.tar
zsh-63b336243fdf5e60058472fa456ed11e75280189.tar.gz
zsh-63b336243fdf5e60058472fa456ed11e75280189.tar.bz2
zsh-63b336243fdf5e60058472fa456ed11e75280189.tar.lz
zsh-63b336243fdf5e60058472fa456ed11e75280189.tar.xz
zsh-63b336243fdf5e60058472fa456ed11e75280189.tar.zst
zsh-63b336243fdf5e60058472fa456ed11e75280189.zip
19387: add (-.) glob qualifier to globs where only files are directly applicable
Diffstat (limited to 'Completion/Unix/Command/_bzip2')
-rw-r--r--Completion/Unix/Command/_bzip24
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_bzip2 b/Completion/Unix/Command/_bzip2
index 15a78e578..75f051a57 100644
--- a/Completion/Unix/Command/_bzip2
+++ b/Completion/Unix/Command/_bzip2
@@ -49,10 +49,10 @@ if [[ "$state" = files ]]; then
$+opt_args[--test] )) && unset decompress
if [[ -z "$decompress" ]]; then
_description files expl 'compressed file'
- _files "$expl[@]" -g '*.(bz2|tbz|tbz2)' && return
+ _files "$expl[@]" -g '*.(bz2|tbz|tbz2)(-.)' && return
else
_description files expl 'file to compress'
- _files "$expl[@]" -g '*~*.(bz2|tbz|tbz2)' && return
+ _files "$expl[@]" -g '^*.(bz2|tbz|tbz2)(-.)' && return
fi
fi