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