mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-01 21:51:40 +02:00
13 lines
194 B
Text
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'
|