palm completion
palm completion prints a static completion script generated from palm’s command tree.
palm completion bash|zsh|fish| Command | What it does |
|---|---|
palm completion bash |
Print the bash script. |
palm completion zsh |
Print the zsh script. |
palm completion fish |
Print the fish script. |
Load it from your shell’s startup file.
| Shell | Setup |
|---|---|
| bash | echo 'source <(palm completion bash)' >> ~/.bashrc |
| zsh | echo 'source <(palm completion zsh)' >> ~/.zshrc, after compinit |
| fish | palm completion fish > ~/.config/fish/completions/palm.fish |
Options
Section titled “Options”| Argument | Meaning |
|---|---|
shell |
bash, zsh or fish |
No options of its own. The global options apply.
What it completes
Section titled “What it completes”The script completes the verbs and their aliases, the utilities, each command’s options, the kind words of get and describe, and the target names after --target and --targets.
It does not complete source names or entity names, because those need the network.
The script is static. After an upgrade that adds a command, print it again.
Reads and writes
Section titled “Reads and writes”palm completion prints to stdout. It reads no file, writes nothing and never prompts.
Exit codes
Section titled “Exit codes”| Code | When |
|---|---|
0 |
The script printed. |
2 |
No shell, or a shell other than bash, zsh and fish. |