Skip to content

Add bash completion #2

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

Open
iridakos opened this issue Apr 12, 2020 · 5 comments
Open

Add bash completion #2

iridakos opened this issue Apr 12, 2020 · 5 comments
Labels
new feature New feature or request

Comments

@iridakos
Copy link
Owner

iridakos commented Apr 12, 2020

Add bash completion related to the following contexts.

  • command selection
  • category names
@iridakos iridakos added the new feature New feature or request label Apr 12, 2020
@iridakos iridakos self-assigned this Apr 12, 2020
@iridakos iridakos removed their assignment Apr 27, 2020
@hedyhli
Copy link

hedyhli commented Jul 31, 2020

How about along with zsh and fish? 🙂

@wwalker
Copy link

wwalker commented Sep 11, 2023

Has anyone written one of these yet?

@dbv-rl
Copy link

dbv-rl commented Sep 11, 2023

Neh, I don't think so. Not yet. Volunteering?

@wwalker
Copy link

wwalker commented Sep 11, 2023

@dbv-rl

Sort of ... I've created a very basic stup-completions here:

https://github.com/wwalker/stup/tree/bash-completion-%232

It completes command names and seems to work fairly well at options and --category.

However it is my first real completion script, and I only found stup because of @iridakos's "how to create a bash completion" tutorial.

So, I have not used stup at all, except to write the completion script, (and a stup bash-completion sub command to dynamically write the completion command, which isn't in that branch right now, it's in the other bash-completion-... branch).

I'd appreciate any feedback.

@dbv-rl
Copy link

dbv-rl commented Sep 12, 2023

@wwalker
Basic is IMHO better than nothing. I'll give it a try and add it to my ansible role for stup. I'll try to let you know how it worked. will take a week or two, though..

Update: I had some time looking at it and it worked right out of the box so far. Thanks for the effort.
This is something that maybe could/should be included into this project as well? @iridakos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants