Add some rudimentary dependency tracking.
[pkgusr] / etc / pkgusr / zsh / _zsh-pkgtools
1 #compdef ppkg cpkg dpkg upkg vpkg ipkg gpkg wpkg pkgrepo pkgsu xtar vtar
2
3 case $service in
4         (cpkg) _command_names -e ;;
5         (?pkg) _wanted file expl 'Pkg User' _users ;;
6         (pkgrepo|pkgsu) _wanted file expl 'Pkg User' _users ;;
7         ([xv]tar) _wanted file expl 'Tarball' _files -g '*.{t{gz,bz{,2},lz,xz},tar.{Z,gz,bz2,lzma,xz}}(-.)' ;;
8 esac
9