1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 09:15:24 +02:00

[bash] Cosmetic changes in bash_environment (suppresses a few shellcheck warnings)

This commit is contained in:
Hyacinthe Cartiaux 2016-05-10 18:27:32 +02:00
parent e1ee62edc8
commit 05149e0129

View file

@ -33,12 +33,12 @@ export LANG LANGUAGE LC_CTYPE LC_ALL
unset MAILCHECK
# Configure a set of useful variables
if [[ "$(echo $UNAME | grep -c -i -e '^.*bsd$')" == "1" ]] ; then
if [[ "$(echo "$UNAME" | grep -c -i -e '^.*bsd$')" == "1" ]] ; then
FQDN=$(hostname)
else
FQDN=$(hostname -f)
fi
DOMAIN=$(echo $FQDN | cut -d '.' -f 2)
DOMAIN=$(echo "$FQDN" | cut -d '.' -f 2)
# ----------------------------------------------------------------------
# SHELL TYPE
@ -64,11 +64,9 @@ esac
export PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
export PATH="/usr/local/bin:$PATH"
# put ~/.local/bin on PATH if you have it
# put ~/.local/bin & ~/bin on PATH if it exists
[ -d "$HOME/.local/bin" ] && export PATH="$PATH:$HOME/.local/bin"
# put ~/bin on PATH if you have it
[ -d "$HOME/bin" ] && export PATH="$PATH:$HOME/bin"
[ -d "$HOME/bin" ] && export PATH="$PATH:$HOME/bin"
# Programming stuff