about summary refs log tree commit diff
path: root/Completion/User/_pbm
blob: 1e5cb16cb5e551a21a0a2b4ef795a77c3be1d873 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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'