kpa said:This gives you completion based on package origin for installed packages (or just the full package name if you drop the -o option) in tcsh(1), I'm sure you can whip up something similar for other shells using the same idea:
Code:complete portmaster 'p/1/`pkg info -qao`/'
complete portmaster 'p/*/`pkg info -qao`/'