Clean up bash variables after use
Plus some minor visual tweaks on .bashrc
This commit is contained in:
parent
3c6d6c695b
commit
7384c7730b
1 changed files with 2 additions and 3 deletions
|
@ -66,9 +66,7 @@ unset prefix bindir mandir
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
shopt -s cdspell checkwinsize globstar histappend nocaseglob
|
shopt -s cdspell checkwinsize globstar histappend nocaseglob
|
||||||
|
set -o noclobber # Prevent overwriting files with output redirection.
|
||||||
# Prevent overwriting files by mistake with output redirection.
|
|
||||||
set -o noclobber
|
|
||||||
|
|
||||||
# Eternal bash history (from https://stackoverflow.com/a/19533853)
|
# Eternal bash history (from https://stackoverflow.com/a/19533853)
|
||||||
HISTCONTROL=erasedups
|
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
|
for completion in /usr/local/etc/bash_completion.d/*; do
|
||||||
source "$completion"
|
source "$completion"
|
||||||
done
|
done
|
||||||
|
unset completion
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Source a local bashrc if available
|
# Source a local bashrc if available
|
||||||
|
|
Loading…
Add table
Reference in a new issue