DSK, .profile: Update, more robust PATH patching

This commit is contained in:
Salt 2018-11-16 19:34:09 -06:00
parent db2f04f651
commit f7dd64f7cb
2 changed files with 6 additions and 2 deletions

2
.dsk

@ -1 +1 @@
Subproject commit 884a9185254472bd99277723ced52e7700df350b Subproject commit 0de0c81949eb0397fffd79c60c5249c1ae96e533

View File

@ -33,7 +33,11 @@ else
export EDITOR="vi" export EDITOR="vi"
fi fi
export PATH=$PATH:$HOME/.local/bin # Patch PATH if necessary
# This string substitution is POSIX-compliant
localbindir="$HOME/.local/bin"
[ "${PATH#*$localbindir}" == "$PATH" ] && export PATH="$PATH:$localbindir"
unset localbindir
# If emerge exists, add emerge aliases # If emerge exists, add emerge aliases
if `which emerge > /dev/null 2>&1` ; then if `which emerge > /dev/null 2>&1` ; then