1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 21:51:40 +02:00
zsh/Completion/User/_pbm
1999-08-12 21:22:20 +00:00

13 lines
194 B
Text

#compdef -p p[bgpn]m*
local pat
_compskip=1
if [[ "$words[1]" = pnm* ]]; then
pat='*.(#i)p[bgp]m'
else
pat="*.(#i)${words[1][1,3]}"
fi
_path_files -g "$pat" || _files -g '*.(#i)p[bgp]m'