From 7384c7730b4bfe89f34958266f3a9530ae168997 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Wed, 30 Oct 2019 20:04:54 +0100 Subject: [PATCH] Clean up bash variables after use Plus some minor visual tweaks on .bashrc --- dotfiles/.bashrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc index f52486c..63889c0 100644 --- a/dotfiles/.bashrc +++ b/dotfiles/.bashrc @@ -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