Commit Graph
10 Commits
Author SHA1 Message Date
Jason Hutchinson d2ecb38d60 add tests 2017-05-26 14:02:18 -05:00
Jason Hutchinson 6f0c809a7d empty namespace value is 'default' 2017-05-26 13:35:29 -05:00
Jason Hutchinson 932e4edeaf fix variable name typo 2017-05-26 13:29:06 -05:00
Jason Hutchinson c11c3a55de use p9k print_icon for kubecontext segment 2017-05-26 13:27:17 -05:00
Jason Hutchinson 55cf15ac41 test that go_segment prints nothing if GOPATH is not set 2017-04-19 00:12:34 -05:00
Jason Hutchinson 0519384d57 test that go_segment prints nothing if GOPATH is set but is not a subset of PWD 2017-04-19 00:11:54 -05:00
Jason Hutchinson ac3307400d update go mock to allow for both version and env sub-commands 2017-04-19 00:11:02 -05:00
Jason Hutchinson 192d634e08 ensure go_version segment prints if PWD is subset of non-empty GOPATH 2017-04-19 00:09:07 -05:00
Jason Hutchinson 21d8fc6378 Redirect stderr for GOPATH check to /dev/null
Accounts for instances where `go` binary is not installed.
2017-04-12 17:09:23 -05:00
Jason Hutchinson f140104e4a 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.
2017-04-06 23:17:32 -05:00