mirror of https://github.com/akelge/zsh
Fix status cpu detection on Linux
This commit is contained in:
parent
9dcf5a473b
commit
48634fc7a8
|
@ -5,7 +5,7 @@ echo
|
||||||
if [ $KERNEL = "Darwin" ]; then
|
if [ $KERNEL = "Darwin" ]; then
|
||||||
cpu_type=$(sysctl -n machdep.cpu.brand_string)
|
cpu_type=$(sysctl -n machdep.cpu.brand_string)
|
||||||
elif [ $KERNEL = "Linux" ]; then
|
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
|
fi
|
||||||
|
|
||||||
print -P "$FX[bold]Kernel:$FX[reset] $KERNEL"
|
print -P "$FX[bold]Kernel:$FX[reset] $KERNEL"
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue