about summary refs log tree commit diff
path: root/Completion/BSD
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-08-05 09:55:37 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-08-05 09:55:37 +0000
commitc4f4ace06b495f5dc0bd3961112d3f7828dac4bb (patch)
tree45f327c0e333fb29b136eb159ae9ece1458ccc82 /Completion/BSD
parentd0ec32128851f69ee7597930ccfe0914c499485c (diff)
downloadzsh-c4f4ace06b495f5dc0bd3961112d3f7828dac4bb.tar.gz
zsh-c4f4ace06b495f5dc0bd3961112d3f7828dac4bb.tar.xz
zsh-c4f4ace06b495f5dc0bd3961112d3f7828dac4bb.zip
17499: BSD pkg_* tools now support bzip2'd packages
Diffstat (limited to 'Completion/BSD')
-rw-r--r--Completion/BSD/Command/_bsd_pkg6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/BSD/Command/_bsd_pkg b/Completion/BSD/Command/_bsd_pkg
index c8bd6d6d5..81b187134 100644
--- a/Completion/BSD/Command/_bsd_pkg
+++ b/Completion/BSD/Command/_bsd_pkg
@@ -16,9 +16,9 @@ _bsd_pkg_pkgfiles() {
   pkgsdir=${PACKAGES:-$portsdir/packages}/All
 
   paths=( "${(@)${(@s.:.)PKG_PATH}:#}" )
-  _files "$@" -g \*.tgz && ret=0
-  (( $#path )) && _files "$@" -W paths -g \*.tgz && ret=0
-  compadd "$@" - $pkgsdir/*.tgz && ret=0
+  _files "$@" -g '*.t[bg]z' && ret=0
+  (( $#path )) && _files "$@" -W paths -g '*.t[bg]z' && ret=0
+  compadd "$@" - $pkgsdir/*.t[bg]z && ret=0
 
   return ret
 }