]> Cypherpunks repositories - gostls13.git/commitdiff
misc/bash/go: Add a completion rule for "go env".
authorRui Ueyama <ruiu@google.com>
Mon, 17 Mar 2014 18:58:02 +0000 (11:58 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 17 Mar 2014 18:58:02 +0000 (11:58 -0700)
"env" is a valid go command. This patch is to make bash to autocomplete it.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/74660045

misc/bash/go

index f5d79e41ae36f19c06d64441d23a2402158469f0..d806a8147da8609bb9d5624503e3b85551aca430 100644 (file)
@@ -20,7 +20,7 @@ _go()
 
   local cmd="${COMP_WORDS[1]}"
 
-  local cmds="build clean doc fix fmt get
+  local cmds="build clean env doc fix fmt get
     install list run test tool version vet"
   local addhelp="gopath importpath remote
     testflag testfunc"