Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] Update completion for Slackware's pkgtools



Greetings.

Due to updates to Slackware's pkgtools, .txz, .tbz, and .tlz packages
are now supported.  The following is a patch that updates zsh's pkgtool
completion to accept those packages.

~Andrew

Index: Completion/Linux/Command/_pkgtool
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/Command/_pkgtool,v
retrieving revision 1.7
diff -u -r1.7 _pkgtool
--- Completion/Linux/Command/_pkgtool    21 Jun 2005 10:01:30 -0000    1.7
+++ Completion/Linux/Command/_pkgtool    19 Jul 2009 03:12:19 -0000
@@ -12,7 +12,7 @@
       "-ask[always ask on package installation regardless of package's
priority]" \
'-priority[provide a priority for the entire package list to use]:priority list:(ADD REC OPT SKP)' \
       '-tagfile[specify a different file to use for package
priorities]:tagfile:_files -/' \
-      '*:package file:_files -g "*.tgz(-.)"'
+      '*:package file:_files -g "*.t[gblx]z(-.)"'
   ;;

   removepkg)
@@ -29,11 +29,11 @@
       '--install-new[install new packages in addition to upgrading
existing ones]' \
       '--reinstall[upgrade even when the same version is already
installed]' \
       '--verbose[show all the gory details of the upgrade]' \
-      '*:package file:_files -g "*.tgz(-.)"'
+      '*:package file:_files -g "*.t[gblx]z(-.)"'
   ;;

   explodepkg)
-    _wanted file expl 'package file' _files -g '*.tgz(-.)'
+    _wanted file expl 'package file' _files -g '*.t[gblx]z(-.)'
   ;;

   makepkg)



Messages sorted by: Reverse Date, Date, Thread, Author