From eb62c843c9c1cb5d34b56f6636c92e73923f8738 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 1 Aug 2017 01:56:46 +1000 Subject: [PATCH] gpu: Hide duplicate identical gpus --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 5e36617c..d627a4c4 100755 --- a/neofetch +++ b/neofetch @@ -1113,7 +1113,7 @@ get_gpu() { "Linux") # Read GPUs into array. IFS=$'\n' - gpus=($(lspci -mm | awk -F '\\"|\\" \\"' '/"Display|"3D|"VGA/ {print $3 " " $4}')) + gpus=($(lspci -mm | awk -F '\\"|\\" \\"|\\(' '/"Display|"3D|"VGA/ {print $3 " " $4}' | uniq)) IFS="$old_ifs" # Number the GPUs if more than one exists.