only show go_version segment if inside GOPATH
As of Go v1.8 GOPATH need not be set, as it will default to $HOME/go. By using `go env GOPATH` to retrieve the value first, this technique will work regardless of whether GOPATH is currently set by the user.pull/22/head
parent
5a1d9ddb64
commit
f140104e4a
Loading…
Reference in New Issue