complete-c pkgfile -s R -l repo -d'search only in the specified repository'-xa'(cat /etc/pacman.conf|grep "^\[" | sed "s/\[\|]//g")'
complete-c pkgfile -s v -l verbose -d'enable verbose output'
complete-c pkgfile -s i -l info -d'provides information about the package owning a file'-r
complete-c pkgfile -s l -l list -d'list files of a given package; similar to "pacman -Ql"'-xa"(pacman -Sl | cut --delim ' ' --fields 2- | tr ' ' \t | sort)"
complete-c pkgfile -s s -l search -d'search which package owns a file'-r
complete-c pkgfile -s u -l update -d'update to the latest filelist. This requires write permission to /var/cache/pkgtools/lists'