mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
CPU: Separate Mac CPU cores addition
Well, at least now I know why the CPU cores were added that way.
This commit is contained in:
5
neofetch
5
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
|
||||
|
||||
Reference in New Issue
Block a user