about summary refs log tree commit diff
path: root/_xtools
diff options
context:
space:
mode:
Diffstat (limited to '_xtools')
-rw-r--r--_xtools8
1 files changed, 7 insertions, 1 deletions
diff --git a/_xtools b/_xtools
index 043a4fe..4c04c58 100644
--- a/_xtools
+++ b/_xtools
@@ -110,6 +110,12 @@ _xrevbump() {
 		':available templates:_xtools_all_packages'
 }
 
+_xsubpkg() {
+	_arguments : \
+		'-m[list master package]'\
+		'*:package:_xbps_all_packages'
+}
+
 _xtools() {
 	case "$service" in
 		xbulk) _xbulk "$@";;
@@ -134,7 +140,7 @@ _xtools() {
 		xrecent) _xrecent "$@";;
 		xrevbump) _xrevbump "$@";;
 		xsrc) _xtool_one_template "$@";;
-		xsubpkg) _xtool_one_template "$@";;
+		xsubpkg) _xsubpkg "$@";;
 	esac
 }