From 437b624532f05b3a109c45ed024f2daa881ecfa1 Mon Sep 17 00:00:00 2001 From: romkatv Date: Mon, 13 Jan 2020 17:21:51 +0100 Subject: [PATCH] rustup is just wow --- internal/p10k.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 400a53f9..89a7cf19 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -2330,7 +2330,7 @@ prompt_rust_version() { dir=${dir:h} done fi - local rustc=${commands[rustc]:A} toolchain deps=() + local rustc=$commands[rustc] toolchain deps=() if (( $+commands[ldd] )); then if ! _p9k_cache_stat_get $0_so $rustc; then local line match so @@ -2344,7 +2344,7 @@ prompt_rust_version() { deps+=$_p9k_cache_val[1] fi if (( $+commands[rustup] )); then - local rustup=${commands[rustup]:A} + local rustup=$commands[rustup] local rustup_home=${RUSTUP_HOME:-~/.rustup} local cfg=($rustup_home/settings.toml(.N)) deps+=($cfg $rustup_home/update-hashes/*(.N))