From 077e5fadb7b04c9b5dcacb67c92f55b04a4c73b3 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 31 May 2018 08:10:43 +1000 Subject: [PATCH] w3m: Simplify function further. --- neofetch | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/neofetch b/neofetch index f9c43947..5bffeb3c 100755 --- a/neofetch +++ b/neofetch @@ -3560,10 +3560,7 @@ END get_w3m_img_path() { # Find w3m-img path. shopt -s nullglob - w3m_paths=( - /usr/{local/,}{lib,libexec,lib64,libexec64}/w3m/w3mi* - ~/.nix-profile/libexec/w3m/w3mi* - ) + w3m_paths=({/usr/{local/,},~/.nix-profile/}{lib,libexec,lib64,libexec64}/w3m/w3mi*) shopt -u nullglob [[ -x "${w3m_paths[0]}" ]] && \