Commit de15bf52 authored by Dylan Araps's avatar Dylan Araps

General: Revert PATH changes and add /usr/sbin and /sbin to PATH

parent 976ae009
...@@ -16,9 +16,8 @@ XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}" ...@@ -16,9 +16,8 @@ XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
export LC_ALL=C export LC_ALL=C
export LANG=C export LANG=C
# Set PATH to binary directories only # Add /usr/sbin and /sbin to PATH.
# This solves issues with neofetch opening the pacman game. export PATH="${PATH}:/usr/sbin:/sbin"
export PATH="/usr/sbin:/usr/bin:/sbin:/bin"
# Set no case match. # Set no case match.
shopt -s nocasematch shopt -s nocasematch
...@@ -376,6 +375,14 @@ get_uptime() { ...@@ -376,6 +375,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") "Linux" | "iPhone OS" | "Solaris")
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