Skip to content

Instantly share code, notes, and snippets.

@x3rAx
Created June 6, 2017 10:35
Show Gist options
  • Save x3rAx/fc2f8e4b3f3abe518e84d663faa28a97 to your computer and use it in GitHub Desktop.
Save x3rAx/fc2f8e4b3f3abe518e84d663faa28a97 to your computer and use it in GitHub Desktop.
~/.bashcr.d
# Add this to the bottom of your ~/.bashrc.
#
# This will source all .sh files in the ~/.bashrc.d directory and subdirectories except files that start
# with a '#' (so you can "comment out" files you don't want to load).
for f in $(find ~/.bashrc.d -type f -name '*.sh' \! -name '#*'); do
. "$f"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment