Use .bashrc.d directory instead of bloated .bashrc
Quentin ADAM
2674

After a quick www.shellcheck.net review:

for file in ~/.bashrc.d/*.bashrc;
do
 source “${file}”
done

Iterating over ls results is notoriously tricky. Also, always quote your variables. More importantly, never use a bash script you haven’t checked with shellcheck (in addition to the online version, you can install it locally and there are tons of nifty integrations to editors and IDEs

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.