iridakos/stup

Add bash completion

iridakos opened this issue · 5 comments

Add bash completion related to the following contexts.

  • command selection
  • category names

How about along with zsh and fish? 🙂

Has anyone written one of these yet?

dbv-rl commented

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

@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 commented

@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