mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-04 21:56:46 +01:00
support cpu_arch on Linux
Linux does not have `arch` or `machine`, so we read from /proc instead.
This commit is contained in:
parent
0996a94118
commit
4bf8882b5d
1 changed files with 2 additions and 0 deletions
|
|
@ -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=$(</proc/sys/kernel/arch)
|
||||
else
|
||||
local cmd
|
||||
for cmd in machine arch; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue