From 192d634e08c428fb3ea82aefc3665dba941be3d8 Mon Sep 17 00:00:00 2001 From: Jason Hutchinson Date: Wed, 19 Apr 2017 00:09:07 -0500 Subject: [PATCH] ensure go_version segment prints if PWD is subset of non-empty GOPATH --- test/segments/go_version.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/segments/go_version.spec b/test/segments/go_version.spec index aa9f625d..173086e0 100755 --- a/test/segments/go_version.spec +++ b/test/segments/go_version.spec @@ -19,8 +19,11 @@ function testGo() { alias go=mockGo POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(go_version) + PWD="$HOME/go/src/github.com/bhilburn/powerlevel9k" + assertEquals "%K{green} %F{255}go1.5.3 %k%F{green}%f " "$(build_left_prompt)" + unset PWD unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS unalias go }