Add /acp/bin to PATH and print LANG at login

This commit is contained in:
Anthony Rose 2021-06-18 21:20:58 +01:00
parent 6501303448
commit 251913e5db

View file

@ -21,14 +21,15 @@ then
fi fi
_acp_add_path () { _acp_add_path () {
if ! [[ "$PATH" =~ "$1:" ]] && test -d "$1" if ! [[ ":$PATH" =~ ":$1:" ]] && test -d "$1"
then then
PATH="$1:$PATH" PATH="$1:$PATH"
fi fi
export PATH export PATH
} }
for dir in "$HOME/bin" \ for dir in "/$USER/bin" \
"$HOME/bin" \
"$HOME/.cargo/bin" \ "$HOME/.cargo/bin" \
"$HOME/opt/centos-git-common" \ "$HOME/opt/centos-git-common" \
/usr/local/sbin \ /usr/local/sbin \
@ -213,3 +214,5 @@ if [ -r "$HOME/.bashrc.local" ]
then then
. "$HOME/.bashrc.local" . "$HOME/.bashrc.local"
fi fi
echo "LANG=$LANG"