Skip to content

Issue-75-Support argcomplete#268

Merged
eldipa merged 12 commits intomasterfrom
Support-Argcomplete
Oct 23, 2022
Merged

Issue-75-Support argcomplete#268
eldipa merged 12 commits intomasterfrom
Support-Argcomplete

Conversation

@eldipa
Copy link
Copy Markdown
Collaborator

@eldipa eldipa commented Oct 23, 2022

Closes #75

eldipa added 11 commits October 22, 2022 19:08
The session id is the pid of the leader process of the current session.
It may be the shell handling the autocomplete in foreground but not necessary.

A leader shell may spawn another shell and it is this shell who owns the
terminal and it is handling the autocomplete. Sending a SIGWINCH to the
former shell makes no effect.

The only reliable way to know the pid of the correct shell is
retrieving it from the autocomplete script and passing it to byexample
via an environment variable.
The user is expected to do something like

```
eval $(byexample -x-autocomplete bash)
```

or

```
byexample -x-autocomplete bash > src
source ./src
```

With this, the shell should be configured and autocompletion for
byexample enabled.

Currently only bash is supported.
Instead of using the source code directly, build a package and install
byexample from it and only then run the tests.
This is meant to catch some building issues like missing data files.
@eldipa eldipa added this to the 11.0.0 milestone Oct 23, 2022
@eldipa eldipa changed the title Support argcomplete Issue-75-Support argcomplete Oct 23, 2022
@eldipa eldipa merged commit 4661e4b into master Oct 23, 2022
@eldipa eldipa deleted the Support-Argcomplete branch October 23, 2022 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bash autocomplete

1 participant