From 92b68e506e3ffd4cda53abf3ec35246b4b48e670 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Thu, 20 Jul 2017 22:39:06 +0700 Subject: [PATCH] CPU: Separate Mac CPU cores addition Well, at least now I know why the CPU cores were added that way. --- neofetch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index e81a65ab..a0b47881 100755 --- a/neofetch +++ b/neofetch @@ -1052,7 +1052,10 @@ get_cpu() { # Add CPU cores to the output. [[ "$cpu_cores" != "off" && "$cores" ]] && \ - cpu="$cpu ($cores)" + case "$os" in + "Mac OS X") cpu="${cpu/@/(${cores}) @}" ;; + *) cpu="$cpu ($cores)" ;; + esac # Add CPU speed to the output. if [[ "$cpu_speed" != "off" && "$speed" ]]; then