Skip to content

Instantly share code, notes, and snippets.

@shelling
Created April 9, 2011 06:14
Show Gist options
  • Save shelling/911182 to your computer and use it in GitHub Desktop.
Save shelling/911182 to your computer and use it in GitHub Desktop.
recursive rcfile loader
# vim: syntax=sh
#
function load {
if [ -f $1 ]; then
source $1
fi
if [ -d $1 ]; then
for file in $1/*; do
load $file
done
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment