From e39cbbff32c6a0d3b053ad0c51e47ceb61c34c77 Mon Sep 17 00:00:00 2001 From: Mitch Weaver <20451170+MitchWeaver@users.noreply.github.com> Date: Wed, 7 Mar 2018 04:37:29 +0100 Subject: [PATCH] fix pacman name conflict bug change to type paclog-pkglist typo --- neofetch | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/neofetch b/neofetch index 4b74cecc..725c71e3 100755 --- a/neofetch +++ b/neofetch @@ -484,16 +484,9 @@ get_uptime() { } get_packages() { - # Remove /usr/games from $PATH. - # This solves issues with neofetch opening the "pacman" game. - local PATH=":${PATH}:" - local PATH="${PATH/':/usr/games:'/:}" - local PATH="${PATH%:}" - local PATH="${PATH#:}" - case "$os" in "Linux" | "BSD" | "iPhone OS" | "Solaris") - type -p pacman >/dev/null && \ + type -p paclog-pkglist >/dev/null && \ packages="$(pacman -Qq --color never | wc -l)" type -p dpkg >/dev/null && \