Shell tab-completion

126 views
Skip to first unread message

Valentin Deleplace

unread,
Jun 30, 2022, 6:07:27 AM6/30/22
to golang-nuts
Hello, is there a recommended way to achieve command line completion of the go command with Bash and Zsh?
E.g.
go te<TAB>  ->  go test
go bui<TAB> -> go build

I don't have that out-of-the-box, and the install page doesn't mention it.
I've seen a couple of 3rd party github repos for this, that have not been updated recently. Maybe one of them is good, I just haven't tried them yet!

Thanks

Steve Mynott

unread,
Jun 30, 2022, 6:23:41 AM6/30/22
to golang-nuts
I'm using and can recommend


which seems actively maintained.

--
Steve Mynott <steve....@gmail.com>
rsa3072/629FBB91565E591955B5876A79CEFAA4450EBD50

Valentin Deleplace

unread,
Jul 1, 2022, 4:01:56 AM7/1/22
to golang-nuts
Thank you Steve
Reply all
Reply to author
Forward
0 new messages