til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

bashrc not being sourced

Note that bash has an exceptionally convoluted configuration system. bashrc is not loaded if .bash_profile exists. And many stupid curl-based install scripts generate . bash_profile files.

As a defensive measure, you can write your own .bash_profile that explicitly loads . bashrc. This avoids ambiguity and offers a consistent, straightforward setup every time.

NB The above quote has a spelling error corrected

Resources and References

  1. Reddit: WSL2 isn’t processing my ~/.bashrc on initialization