1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-18 05:40:07 +00:00

ensure go_version segment prints if PWD is subset of non-empty GOPATH

This commit is contained in:
Jason Hutchinson 2017-04-19 00:09:07 -05:00
parent 21d8fc6378
commit 192d634e08

View file

@ -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
}