diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-12 21:23:55 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-12 21:23:55 +0000 |
commit | 98aaef0a46c8d9d1c34dd939fd8a470791aed2ee (patch) | |
tree | 52c3c63b35a207b17c3f2b13aec368f715c96ab6 /Completion | |
parent | aa7ab6121c31c86d43d1456896e1f4f262c16afa (diff) | |
download | zsh-98aaef0a46c8d9d1c34dd939fd8a470791aed2ee.tar.gz zsh-98aaef0a46c8d9d1c34dd939fd8a470791aed2ee.tar.xz zsh-98aaef0a46c8d9d1c34dd939fd8a470791aed2ee.zip |
zsh-workers/7418
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' |