Commit 9f27ea43 authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #458 from dylanaraps/pacman

Packages: Remove /usr/games from PATH to fix issues with pacman game
parents 6e8ff7b5 b2a70325
...@@ -357,6 +357,14 @@ get_uptime() { ...@@ -357,6 +357,14 @@ get_uptime() {
} }
get_packages() { 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 case "$os" in
"Linux" | "iPhone OS" | "Solaris" | "GNU") "Linux" | "iPhone OS" | "Solaris" | "GNU")
type -p pacman >/dev/null && \ type -p pacman >/dev/null && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment