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:
parent
21d8fc6378
commit
192d634e08
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue