Skip to content

Instantly share code, notes, and snippets.

@bkeepers
Created June 19, 2009 13:41
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkeepers/132618 to your computer and use it in GitHub Desktop.
Save bkeepers/132618 to your computer and use it in GitHub Desktop.
Split bash profile into multiple files
# My ~/.profile file was getting too messy and unmaintainable, so I
# split everything out into separate files and sourced them
for file in ~/.profile.d/*
do
source $file
done
$ ls ~/.profile.d/
aliases colors completion prompt remember_path
@MartinJHammer
Copy link

MartinJHammer commented Oct 19, 2021

Just what I was looking for! Needing it for my .bash_aliases :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment