Move more lines into the cache block
This commit is contained in:
parent
53505207eb
commit
90fd0cf1be
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -1026,10 +1026,10 @@ getgpu () {
|
||||||
source "/tmp/neofetch/gpu"
|
source "/tmp/neofetch/gpu"
|
||||||
else
|
else
|
||||||
gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}')
|
gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}')
|
||||||
cache "gpu" "$gpu"
|
|
||||||
fi
|
|
||||||
gpu=${gpu//'/ $'}
|
gpu=${gpu//'/ $'}
|
||||||
gpu=${gpu%,*}
|
gpu=${gpu%,*}
|
||||||
|
cache "gpu" "$gpu"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*"BSD")
|
*"BSD")
|
||||||
|
|
Loading…
Reference in a new issue