mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
ensure go_version segment prints if PWD is subset of non-empty GOPATH
This commit is contained in:
parent
21d8fc6378
commit
192d634e08
@ -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 New Issue
Block a user