From 6543c4ed787a4659e01297f9034a375c64d51de2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 31 May 2015 00:03:52 +1200 Subject: Don't clobber $_ (changed my mind) --- sh/profile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sh/profile') diff --git a/sh/profile b/sh/profile index 483e0b5a..6d873c67 100644 --- a/sh/profile +++ b/sh/profile @@ -5,8 +5,9 @@ fi # Load all supplementary scripts in ~/.profile.d if [ -d "$HOME"/.profile.d ] ; then - for _ in "$HOME"/.profile.d/*.sh ; do - . "$_" + for profile in "$HOME"/.profile.d/*.sh ; do + . "$profile" done + unset -v profile fi -- cgit v1.2.3