Packages: Remove /usr/games from PATH to fix issues with pacman game
This commit is contained in:
parent
6e8ff7b59f
commit
b2a70325e9
8
neofetch
8
neofetch
|
@ -357,6 +357,14 @@ 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" | "iPhone OS" | "Solaris" | "GNU")
|
||||
type -p pacman >/dev/null && \
|
||||
|
|
Reference in New Issue