Browse docs
Shell Completion
lde ships tab-completion for bash, zsh, and fish. Completions cover commands, flags, and file paths.
Enable completions
Add the generated script to your shell’s rc file:
# bash — add to ~/.bashrc
eval "$(lde completion bash)"
# zsh — add to ~/.zshrc
eval "$(lde completion zsh)"
# fish — add to config.fish
lde completion fish | source
You can also print the script to inspect it:
lde completion bash
What completes
- Commands — type
lde <TAB>to see every command and alias. - Scripts — inside a project,
lde <TAB>also suggests yourlde.jsonscript names (e.g.dev), andlde run <TAB>suggests them alongside files. - Flags — type a command followed by
<TAB>to see its flags (e.g.lde run <TAB>), plus the global flags like-Cand--help. - Sub-commands —
lde help <TAB>andlde completion <TAB>complete command names. - Files and directories — options that take a path (like
-Cand--outfile) complete paths directly, and everything typed after--is treated as positional and completes as files.