Clean up bash variables after use

Plus some minor visual tweaks on .bashrc
This commit is contained in:
Fernando Schauenburg 2019-10-30 20:04:54 +01:00
parent 3c6d6c695b
commit 7384c7730b

View file

@ -66,9 +66,7 @@ unset prefix bindir mandir
##############################################################################
shopt -s cdspell checkwinsize globstar histappend nocaseglob
# Prevent overwriting files by mistake with output redirection.
set -o noclobber
set -o noclobber # Prevent overwriting files with output redirection.
# Eternal bash history (from https://stackoverflow.com/a/19533853)
HISTCONTROL=erasedups
@ -322,6 +320,7 @@ if [ -d /usr/local/etc/bash_completion.d ]; then
for completion in /usr/local/etc/bash_completion.d/*; do
source "$completion"
done
unset completion
fi
# Source a local bashrc if available