Closed muraii closed 5 years ago
Cool! zsh
support for auto-completion would be nice.
Is there a way to do that which is native to zsh
? Your approach in this PR definitely does the trick, but autoload bashcompinit && bashcompinit
feels like the kind of thing that should be in somebody's .bash_profile
or whatever the zsh
equivalent is.
Here is Git's zsh completion script. Maybe we could add one like it for um
that gets copied to the right place on install?
You're right. I'll take a look at that and see if maybe I can contribute something a bit more elegant. it's a good excuse to bone up on shell scripting. :)
Hey @muraii! If you need help with that Zsh completion let me know. I've had my fair share of pain trying to write completion scripts :P
I may! I have no idea where to start nor what I'm doing. :) Which is to say that any progress will be very slow.
On Tue, Aug 28, 2018 at 8:02 AM Filipe Kiss notifications@github.com wrote:
Hey @muraii https://github.com/muraii! If you need help with that Zsh completion let me know. I've had my fair share of pain trying to write completion scripts :P
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sinclairtarget/um/pull/7#issuecomment-416558411, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYpmex6U7AZRUwuVtodUxkU6K5Tvzppks5uVTE5gaJpZM4WEYLe .
Hello!
Super utility here. I use
zsh
and the autocomplete relies on bashcomplete
which is not enabled inzsh
by default. Usingbashcompinit
makescomplete
available tozsh
.I just inserted a shell check into
um-completion.sh
and when it findszsh
it loadsbashcompinit
. This works on my systems but I will readily admit I just learned aboutbash
completion and loadingbashcompinit
in the last hour or so, so I hope I've not introduced some stupid bug(s).Cheers!