From 4bf8882b5d30a56c254881144c007b8d90c16b31 Mon Sep 17 00:00:00 2001 From: Gamma Date: Thu, 17 Oct 2024 08:18:34 -0500 Subject: [PATCH] support cpu_arch on Linux Linux does not have `arch` or `machine`, so we read from /proc instead. --- internal/p10k.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 0942c1c1..feca1a71 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5751,6 +5751,8 @@ prompt_cpu_arch() { if _p9k_cache_ephemeral_get $0; then state=$_p9k__cache_val[1] text=$_p9k__cache_val[2] + elif [[ $_p9k_os == (Linux|Android) ]]; then + text=$(