mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-14 00:50:08 +00:00
Fix travis build
This commit is contained in:
parent
0257159e1e
commit
dc21b97335
3 changed files with 4 additions and 3 deletions
|
@ -1307,7 +1307,8 @@ prompt_root_indicator() {
|
||||||
################################################################
|
################################################################
|
||||||
# Segment to display Rust version number
|
# Segment to display Rust version number
|
||||||
prompt_rust_version() {
|
prompt_rust_version() {
|
||||||
local rust_version=$(command rustc --version 2>/dev/null)
|
local rust_version
|
||||||
|
rust_version=$(command rustc --version 2>/dev/null)
|
||||||
# Remove "rustc " (including the whitespace) from the beginning
|
# Remove "rustc " (including the whitespace) from the beginning
|
||||||
# of the version string and remove everything after the next
|
# of the version string and remove everything after the next
|
||||||
# whitespace. This way we'll end up with only the version.
|
# whitespace. This way we'll end up with only the version.
|
||||||
|
|
|
@ -31,7 +31,7 @@ function testLaravelVersionSegment() {
|
||||||
POWERLEVEL9K_LARAVEL_ICON='x'
|
POWERLEVEL9K_LARAVEL_ICON='x'
|
||||||
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(laravel_version)
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(laravel_version)
|
||||||
|
|
||||||
assertEquals "%K{001} %F{white%}x%f %F{white}5.4.23 %k%F{maroon}%f " "$(build_left_prompt)"
|
assertEquals "%K{001} %F{white%}x %f%F{white}5.4.23 %k%F{maroon}%f " "$(build_left_prompt)"
|
||||||
|
|
||||||
unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
|
unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
|
||||||
unset POWERLEVEL9K_LARAVEL_ICON
|
unset POWERLEVEL9K_LARAVEL_ICON
|
||||||
|
|
|
@ -32,7 +32,7 @@ function testRust() {
|
||||||
mockRust
|
mockRust
|
||||||
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(rust_version)
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(rust_version)
|
||||||
|
|
||||||
assertEquals "%K{208} %F{black%}Rust%f %F{black}0.4.1a-alpha %k%F{darkorange}%f " "$(build_left_prompt)"
|
assertEquals "%K{208} %F{black%}Rust %f%F{black}0.4.1a-alpha %k%F{darkorange}%f " "$(build_left_prompt)"
|
||||||
|
|
||||||
unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
|
unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue