OILS / doc / completion.md View on Github | oilshell.org

25 lines, 17 significant
1---
2default_highlighter: oils-sh
3in_progress: yes
4---
5
6Interactive Shell Completion
7============================
8
9You can use interactive completion directly under `osh` or `ysh`, or clients of
10a [headless shell](headless.html) can use it as an API.
11
12## Completion API
13
14The completion API is modeled after the [bash completion
15API](https://www.gnu.org/software/bash/manual/html_node/Command-Line-Editing.html#Command-Line-Editing)
16
17However, an incompatibility is that it deals with `argv` entries and not
18command strings.
19
20OSH moves the **responsibility for quoting** into the shell. Completion
21plugins should not do it.
22
23- TODO: describe the `compadjust` builtin. Derived from a cleanup of the
24 `bash-completion` project.
25