For some reason when I start the Ubuntu terminal in Windows, it doesn't show colors until I type bash. What could be the reason and how do I fix it? When I installed WSL it always showed colors.
Open the terminal, right click on top and go to Options, Looks and finally change the Theme. Here you can choose whichever one you feel like, but base16-solarized-dark.
Your problem is that most probably colored output is disabled in your terminal. Then go in your Terminal settings -> Preferences -> Profiles -> Text -> Display ANSI colors. Open a new terminal and you should be ready to go!
The reason could be a modified .bash_profile
file. Try putting these lines to ~/.bash_profile
source ~/.bashrc
Or a better way is to run the below command from your terminal
echo "source ~/.bashrc" >> ~/.bash_profile
To know more about how do we set environment-variables and what role do files like .bashrc
, .bash_profile
play, you may want to read:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With