From 98aaef0a46c8d9d1c34dd939fd8a470791aed2ee Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 12 Aug 1999 21:23:55 +0000 Subject: zsh-workers/7418 --- Completion/User/_pbm | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Completion/User/_pbm 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' -- cgit 1.4.1