mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 12:32:32 +00:00
GPU: Disable caching on all systems but macOS. Fixes #509
This commit is contained in:
3
neofetch
3
neofetch
@@ -971,6 +971,7 @@ get_gpu() {
|
||||
gpu="$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}')"
|
||||
gpu="${gpu//'/ $'}"
|
||||
gpu="${gpu%,*}"
|
||||
cache "gpu" "$gpu"
|
||||
;;
|
||||
|
||||
"iPhone OS")
|
||||
@@ -1035,8 +1036,6 @@ get_gpu() {
|
||||
gpu="${gpu/NVIDIA}"
|
||||
gpu="${gpu/Intel}"
|
||||
fi
|
||||
|
||||
cache "gpu" "$gpu"
|
||||
}
|
||||
|
||||
get_memory() {
|
||||
|
||||
Reference in New Issue
Block a user