mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
Shorten Mac OS X GPU output and add a comma between gpus
This commit is contained in:
7
fetch
7
fetch
@@ -920,12 +920,9 @@ getgpu () {
|
||||
;;
|
||||
|
||||
"Mac OS X")
|
||||
gpu=$( \
|
||||
system_profiler SPDisplaysDataType | \
|
||||
awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}' | \
|
||||
awk '{ printf "%s ", $0 }'
|
||||
)
|
||||
gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}')
|
||||
gpu=${gpu//'/ $'}
|
||||
gpu=${gpu%,*}
|
||||
;;
|
||||
|
||||
*"BSD")
|
||||
|
Reference in New Issue
Block a user