diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-31 00:03:52 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-31 00:03:52 +1200 |
commit | 6543c4ed787a4659e01297f9034a375c64d51de2 (patch) | |
tree | fa4790dfa93ff00877f2e57c2d4f53ef66b38bde /bash/bashrc | |
parent | Safer version number test (diff) | |
download | dotfiles-6543c4ed787a4659e01297f9034a375c64d51de2.tar.gz dotfiles-6543c4ed787a4659e01297f9034a375c64d51de2.zip |
Don't clobber $_ (changed my mind)
Diffstat (limited to 'bash/bashrc')
-rw-r--r-- | bash/bashrc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bash/bashrc b/bash/bashrc index fde93050..4e7895c3 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -86,8 +86,9 @@ fi # Load any supplementary scripts if [[ -d $HOME/.bashrc.d ]] ; then - for _ in "$HOME"/.bashrc.d/*.bash ; do - source "$_" + for bashrc in "$HOME"/.bashrc.d/*.bash ; do + source "$bashrc" done + unset -v bashrc fi |