8 ms·
if there was a simple way to alias the whole thing out of the way and have the autocompletion still work, I'd be sold instantly, and use this as a way to get a
by tpoacher 4y ago
if there was a simple way to alias the whole thing out of the way and have the autocompletion still work, I'd be sold instantly, and use this as a way to get a git-like interface for my bash scripts.
However, while the bash manual says that, in theory, this is a thing, in practice I've found that completion on aliases simply doesn't work. You need to manually redefine the completions from scratch for your aliases.
Given that limitation, I don't see much benefit from this versus a simple wrapper-script using 'case' to redirect to sub-script with their own completion. The latter has the benefit that you don't need a third party library for it.
Still a cool little project though. Kudos. It does feel like one of those "solution looking for a good problem" situations; maybe there's a really nice problem out there that this solves fantastically.