Add bash and zsh completions for llpp
[llpp.git] / misc / completions / README
blob29115df195f52e9e01b1a3d9191245047b3bb9c8
1 Shell completion
2 ================
4 This directory contains files for enabling tab completion in user shells.
5 Instruction for some shells follows:
7 Bash
8 ----
10 If you have `bash-completion` installed, you can install `llpp` in the `bash/`
11 directory into wherever that package's completions are stored, typically in
12 `/usr/share/bash-completion/completions/`.  Alternatively, you can just copy
13 the contents into or source it in your `~/.bashrc`.
15 Zsh
16 ---
18 To enable completion for `llpp`, install `_llpp` to a directory in zsh's
19 `$fpath`.  Packages generally put their zsh completions in the directory
20 `/usr/share/zsh/site-functions/`.  Alternatively, for the same effect, one can
21 add something like:
23   compdef "_files -g '*.(pdf|xps|zip|cbz|jpg|png)'" llpp
25 to `.zshrc`.