aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2018-06-07 03:01:36 +0300
committerDominik Ritter <dritter03@googlemail.com>2018-06-07 03:36:30 +0300
commitdc21b973350a1ebc0a6ff1699e2d8439a9f8820c (patch)
tree8b0464dd279d43e508f65f52e80f4b6a73a11215 /powerlevel9k.zsh-theme
parent0257159e1ef634f2ccd7121b1c93f359fae07e46 (diff)
Fix travis build
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme3
1 files changed, 2 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index dde838d9..59178708 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1307,7 +1307,8 @@ prompt_root_indicator() {
################################################################
# Segment to display Rust version number
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
# of the version string and remove everything after the next
# whitespace. This way we'll end up with only the version.