aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2018-06-07 01:44:47 +0300
committerDominik Ritter <dritter03@googlemail.com>2018-06-07 01:44:47 +0300
commite763fa14b0f7117071072d4ed174cb639e76526a (patch)
treea214b281fe1f96cb85a1a724143ddd0504c80dc4 /powerlevel9k.zsh-theme
parent4c2f58bdbdaee400b076f2dd56aa5fea2bf9e309 (diff)
parent5657fe6ac7d75cac48a386f55e429b716f8d7623 (diff)
Merge remote-tracking branch 'chhschou/master' into staging_065
Conflicts were: - powerlevel9k.zsh-theme and test/segments/rust_version.spec: rust_version Segment changed (#641) on master and colors got names (#703) on next.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index ec366abb..1f13ee5f 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1273,9 +1273,9 @@ prompt_root_indicator() {
prompt_rust_version() {
local rust_version
rust_version=$(rustc --version 2>&1 | grep -oe "^rustc\s*[^ ]*" | grep -o '[0-9.a-z\\\-]*$')
-
+
if [[ -n "$rust_version" ]]; then
- "$1_prompt_segment" "$0" "$2" "darkorange" "$DEFAULT_COLOR" "Rust $rust_version" 'RUST_ICON'
+ "$1_prompt_segment" "$0" "$2" "darkorange" "$DEFAULT_COLOR" "$rust_version" 'RUST_ICON'
fi
}