mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-04 21:56:46 +01:00
#632: Indicate Rust or (rust) for rust_version segment only if icon is unavailable
This commit is contained in:
parent
688f6203b4
commit
5657fe6ac7
3 changed files with 5 additions and 5 deletions
|
|
@ -19,7 +19,7 @@ function testRust() {
|
|||
alias rustc=mockRust
|
||||
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(rust_version)
|
||||
|
||||
assertEquals "%K{208} %F{black}Rust 0.4.1a-alpha %k%F{208}%f " "$(build_left_prompt)"
|
||||
assertEquals "%K{208} %F{black%}Rust%f %F{black}0.4.1a-alpha %k%F{208}%f " "$(build_left_prompt)"
|
||||
|
||||
unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
|
||||
unalias rustc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue