mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-25 00:21:58 +00:00
rust icon added
This commit is contained in:
parent
154181ffc2
commit
72315fdc59
2 changed files with 4 additions and 2 deletions
|
@ -120,7 +120,8 @@ case $POWERLEVEL9K_MODE in
|
||||||
VCS_REMOTE_BRANCH_ICON ' '$'\UF204 ' #
|
VCS_REMOTE_BRANCH_ICON ' '$'\UF204 ' #
|
||||||
VCS_GIT_ICON $'\UF113 ' #
|
VCS_GIT_ICON $'\UF113 ' #
|
||||||
VCS_HG_ICON $'\UF0C3 ' #
|
VCS_HG_ICON $'\UF0C3 ' #
|
||||||
)
|
RUST_ICON $'\UE6A8' #
|
||||||
|
)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Powerline-Patched Font required!
|
# Powerline-Patched Font required!
|
||||||
|
@ -171,6 +172,7 @@ case $POWERLEVEL9K_MODE in
|
||||||
VCS_REMOTE_BRANCH_ICON $'\u2192' # →
|
VCS_REMOTE_BRANCH_ICON $'\u2192' # →
|
||||||
VCS_GIT_ICON ''
|
VCS_GIT_ICON ''
|
||||||
VCS_HG_ICON ''
|
VCS_HG_ICON ''
|
||||||
|
RUST_ICON ''
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -691,7 +691,7 @@ prompt_rust_version() {
|
||||||
rust_version=$(rustc --version 2>&1 | grep -oe "^rustc\s*[^ ]*" | grep -o '[0-9.a-z\\\-]*$')
|
rust_version=$(rustc --version 2>&1 | grep -oe "^rustc\s*[^ ]*" | grep -o '[0-9.a-z\\\-]*$')
|
||||||
|
|
||||||
if [[ -n "$rust_version" ]]; then
|
if [[ -n "$rust_version" ]]; then
|
||||||
"$1_prompt_segment" "$0" "$2" "208" "$DEFAULT_COLOR" "Rust $rust_version"
|
"$1_prompt_segment" "$0" "$2" "208" "$DEFAULT_COLOR" "Rust $rust_version" 'RUST_ICON'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
# RSpec test ratio
|
# RSpec test ratio
|
||||||
|
|
Loading…
Reference in a new issue