diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/User/_pbm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Completion/User/_pbm b/Completion/User/_pbm new file mode 100644 index 000000000..1e5cb16cb --- /dev/null +++ b/Completion/User/_pbm @@ -0,0 +1,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' |