Packages: Remove /usr/games from PATH to fix issues with pacman game

This commit is contained in:
Dylan Araps 2016-11-25 23:50:26 +11:00
parent 6e8ff7b59f
commit b2a70325e9
1 changed files with 8 additions and 0 deletions

View File

@ -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 && \