mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 12:32:32 +00:00
GPU: Added support for OS X and Windows
This commit is contained in:
10
fetch
10
fetch
@@ -638,7 +638,12 @@ getgpu () {
|
||||
;;
|
||||
|
||||
"Mac OS X")
|
||||
|
||||
gpu=$( \
|
||||
system_profiler SPDisplaysDataType | \
|
||||
awk -F': ' '/^\ *Chipset Model:/ {print $2}' | \
|
||||
awk '{ printf "%s / ", $0 }'
|
||||
)
|
||||
gpu=${gpu//'/ $'}
|
||||
;;
|
||||
|
||||
"BSD")
|
||||
@@ -654,7 +659,8 @@ getgpu () {
|
||||
|
||||
|
||||
"Windows")
|
||||
|
||||
gpu=$(wmic path Win32_VideoController get caption)
|
||||
gpu=$(tail -1 <<< ${gpu})
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user