From 90fd0cf1bea734fd5ae6f231ffb9557cc6fff1e4 Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 30 Mar 2016 14:14:51 +1100 Subject: [PATCH] Move more lines into the cache block --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 56526e3c..c275d055 100755 --- a/neofetch +++ b/neofetch @@ -1026,10 +1026,10 @@ getgpu () { source "/tmp/neofetch/gpu" else gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}') + gpu=${gpu//'/ $'} + gpu=${gpu%,*} cache "gpu" "$gpu" fi - gpu=${gpu//'/ $'} - gpu=${gpu%,*} ;; *"BSD")