diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2022-12-02 12:25:43 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2022-12-02 12:25:43 +0300 |
commit | 9f0751c2e34052f12375a2d9c181ea792d750612 (patch) | |
tree | b66b173b0463ecc305de7341fd83138f1a48f761 | |
parent | 6609767abd81aed3101cb67908df727998b0b619 (diff) | |
parent | 45758d95fb43730f75b3f75c6c7034de7e81b7cf (diff) |
Merge branch 'clarkcox3-master'
-rw-r--r-- | internal/p10k.zsh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 2e816714..a5e004b3 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5656,7 +5656,9 @@ prompt_cpu_arch() { state=$_p9k__cache_val[1] text=$_p9k__cache_val[2] else - text=$(command arch) 2>/dev/null && [[ $text == [a-zA-Z][a-zA-Z0-9_]# ]] || text= + text=$(command machine) 2>/dev/null && [[ $text == [a-zA-Z][a-zA-Z0-9_]# ]] || + text=$(command arch) 2>/dev/null && [[ $text == [a-zA-Z][a-zA-Z0-9_]# ]] || + text= state=_${(U)text} _p9k_cache_ephemeral_set "$state" "$text" fi |