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

Documentation update for oh-my-bash for completion using bash #99

Open
gnud opened this issue Jun 4, 2024 · 0 comments
Open

Documentation update for oh-my-bash for completion using bash #99

gnud opened this issue Jun 4, 2024 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@gnud
Copy link

gnud commented Jun 4, 2024

Is your feature request related to a problem? Please describe.
Adding a plugin for new Auto completion system

Describe the solution you'd like
A guide to create oh my bash completion plugin

Describe alternatives you've considered
The code for the completion:

New file in ~/.oh-my-bash/custom/completions/hostctl.completion.sh
with the content of:

hostctl completion bash > ~/.oh-my-bash/custom/completions/hostctl.completion.sh 

based on the help for available commands:

Available Commands:
  bash        Generate bash completion script
  zsh         Generate zsh completion script

then in your ~/.bashrc

completions=(
  ... # other entries
  hostctl
)

then just reload current bash session or re source the ~/.bashrc or open a new terminal tab/window.

Note: it's expected that you have a working Oh-my-bash setup

Additional context

If this feature is desired I will make a pull request to the documentation.

@gnud gnud added the feature New feature or request label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants