Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Improve pkg help completion
Baptiste Daroussin committed 13 years ago
commit e109f51a2903db6279c87f2272244032f47dee7a
parent 0d5fb7d8b51779bfb7eee800991b81943d26d4ce
1 file changed +2 -7
modified scripts/zsh/_pkg
@@ -144,13 +144,8 @@ _pkg() {
				&& return 0
			;;
		(help)
-
			subcmd_list=( $(
-
				for cmd in $subcmd[@]; do
-
					print ${cmd/\[*/}
-
				done
-
				) )
-
				_arguments -s \
-
					':command:_values -S " " -w "pkg subcommands" $subcmd_list[@]'
+
			_arguments -s \
+
				':command:_values -S " " -w "pkg subcommands" ${subcmd/\[*/}'
			return 0
			;;
		(info)