about summary refs log tree commit diff
path: root/Completion/User/_pbm
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-12 21:22:20 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-12 21:22:20 +0000
commit5714953c514a5fea35dcd819caf1afef4d92a13b (patch)
treed930266c7043247119914fca1680a53b121d6685 /Completion/User/_pbm
parent7f356602555c746d87eda64538a37c4ded76addb (diff)
downloadzsh-5714953c514a5fea35dcd819caf1afef4d92a13b.tar.gz
zsh-5714953c514a5fea35dcd819caf1afef4d92a13b.tar.xz
zsh-5714953c514a5fea35dcd819caf1afef4d92a13b.zip
Initial revision
Diffstat (limited to 'Completion/User/_pbm')
-rw-r--r--Completion/User/_pbm13
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'