Solve problem with sourcing .bashrc in WLS
Mar 13, 2021
If you use Windows Linux Subsystem (WLS) under Windows you can meet such a situation when file .bashrc is not sourced when loading WLS terminal.
Thus terminal in WLS is not colored and aliases, env variables are not available.
That could be caused by rewriting instructions in ~/.bash_profile file.
To fix it edit file ~/.bash_profile and add following lines:
if [[ -f ~/.bashrc ]] ; then
. ~/.bashrc
fi
Solution is found here.