Misc: Apply existing PATH first before applying fallback values.

In case user has a custom-installed binary, prioritise it first before
using system-supplied binaries.
This commit is contained in:
Muhammad Herdiansyah 2018-08-29 10:58:57 +07:00
parent e7a3f5cba2
commit 9ba1bbaafe

View file

@ -33,7 +33,7 @@ version="5.0.1"
bash_version="${BASH_VERSION/.*}"
sys_locale="${LANG:-C}"
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
PATH="/usr/xpg4/bin:/usr/sbin:/sbin:/usr/etc:/usr/libexec:${PATH}"
PATH="${PATH}:/usr/xpg4/bin:/usr/sbin:/sbin:/usr/etc:/usr/libexec"
reset='\e[0m'
shopt -s nocasematch