Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to shell completions. #34

Merged
merged 5 commits into from
Sep 7, 2016
Merged

Access to shell completions. #34

merged 5 commits into from
Sep 7, 2016

Conversation

dragonator
Copy link
Contributor

@dragonator dragonator commented Sep 5, 2016

I manage to retrieve the bash completions within the script and make the completion mechanism from scratch. The completion function is then bind to TAB key which makes is callable in parallel with the read command, which represents the "with" prompt.

Since the options of "complete" and "compgen" commands are slightly different, it will be tricky to make the completions within the script 100% equal as in bash prompt. But still not impossible I think.

There are still some minor issues with the provided solution, but they are not critical.

EDIT: I've also fix a few other stuff along the road. I hope you find them valuable.

@mchav mchav merged commit 555df3e into mchav:master Sep 7, 2016
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.

None yet

2 participants