mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 00:10:08 +00:00
Removed 'Rust' text from test; Silenced missing rustc warning
This commit is contained in:
@@ -1104,7 +1104,7 @@ prompt_root_indicator() {
|
||||
# Print Rust version number
|
||||
prompt_rust_version() {
|
||||
local rust_version
|
||||
rust_version=$(command rustc --version 2>&1)
|
||||
rust_version=$(command rustc --version 2>/dev/null)
|
||||
# Remove "rustc " (including the whitespace) from the beginning
|
||||
# of the version string and remove everything after the next
|
||||
# whitespace. This way we'll end up with only the version.
|
||||
|
||||
Reference in New Issue
Block a user