DSK, .profile: Update, more robust PATH patching
This commit is contained in:
parent
db2f04f651
commit
f7dd64f7cb
2
.dsk
2
.dsk
@ -1 +1 @@
|
||||
Subproject commit 884a9185254472bd99277723ced52e7700df350b
|
||||
Subproject commit 0de0c81949eb0397fffd79c60c5249c1ae96e533
|
6
.profile
6
.profile
@ -33,7 +33,11 @@ else
|
||||
export EDITOR="vi"
|
||||
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 `which emerge > /dev/null 2>&1` ; then
|
||||
|
Loading…
Reference in New Issue
Block a user