blurstudio / hab

A application environment and launcher
GNU Lesser General Public License v3.0
25 stars 3 forks source link

Tab completion for bash support #67

Closed MHendricks closed 2 months ago

MHendricks commented 1 year ago

Checklist

Types of Changes

Proposed Changes

Fixes issues with using click's shell completion including dynamically completing any known URI's.

I've included a pre-compiled completion script that can be added to a user's .bashrc file. I'm not sure if we want to do this, but it seems to be the same on the platforms I've tested with (git bash on windows and ubuntu using WSL).

Note: The alias tab completion doesn't work for --launch in env and activate because it requires resolving the URI first. However --launch is an option and the URI is an argument and click resolves options before arguments.