mirror of
https://github.com/akelge/zsh
synced 2025-07-03 21:19:06 +00:00
Fix status cpu detection on Linux
This commit is contained in:
@ -5,7 +5,7 @@ echo
|
||||
if [ $KERNEL = "Darwin" ]; then
|
||||
cpu_type=$(sysctl -n machdep.cpu.brand_string)
|
||||
elif [ $KERNEL = "Linux" ]; then
|
||||
cpu_type=$(cat /proc/cpuinfo|grep "model name:"|cut -d: -f2|uniq)
|
||||
cpu_type=$(cat /proc/cpuinfo|grep "model name"|cut -d: -f2|uniq)
|
||||
fi
|
||||
|
||||
print -P "$FX[bold]Kernel:$FX[reset] $KERNEL"
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user