How to change the Windows 10 Bash console colors?

How do I affect the output colors returned by ls and other commands when using Bash in webstorm.  These colors weren't set in my .bashrc file and I couldn't find a way to change them in WebStorm.

 

12 comments

I specifically want to remove the green and background green.

0

Terminal takes the background color from your OS shell preferences - see https://youtrack.jetbrains.com/issue/IDEA-145236 and linked tickets...

0

The value of the ScreenColors was already set to 7.  And I am about to get the background color to change just fine as you can see it is dark.  It's the text color that I want to change.  The background and the foreground for the directories is coming up green and I can't find a way to change that.  None of my console colors, cmd, power shell, bash, come up in green and I can't find it defined anywhere and there is no setting to be able to change it in the WebStorm settings...at least from what I could find.  

0

WebStorm settings that control terminal colors are Settings | Editor | Colors & Fonts | Console Colors; but they are merged with shell preferences

0

I have only 5 different settings for console colors: background, error output, standard output, system output and user input.  The background color setting does change the background color.  But I don't know how to affect the rest of the colors.  The don't appear that way when I run bash from the command line.  So basically when WebStorm runs the terminal it seems to pickup colors that aren't defined anywhere else.  The original colors in the bash shell as set in the windows 10 version are dark blue for folders names and gray scale color set for normal files.  For some reason the folders are getting set with a background of green with normal files a green text.  What else can I try?

0

what colors are used for files/folders when you choose a light scheme in WebStorm ('default', for example)?

0

So it seems that colors are taken from system settings... Unfortunately can't check all this myself - don't have Windows 10 to test on... See https://github.com/Microsoft/vscode/issues/7556, http://superuser.com/questions/1066382/bash-on-ubuntu-on-windows-cant-change-some-directory-colors for some hints

0

also, try adding `-i` parameter to bash in shell path settings to ensure that .bashrc is read...

0

One of the comments was to install the registry settings for solarized dark and those registry settings have made the shell usable!  Thanks so much @Elena Pogorelova!  

0

Well I got too excited and the problem still exists but I am starting to understand why.  When I usually go into the bash shell, I am starting in my home directory which is empty.  When I cd into /etc and run an ls, all the colors come up the exact way I expect them to show up.  When I open up the shell in webstorm it opens the directory in the context of the project which happens to be inside of the mounted c drive.  It looks like Microsoft is trying to show users through color that they are in the windows filesystem and outside of the linux part.  So I will continue with my search.  I'm not exactly sure yet what my workflow will be in using the bash shell since I can't swap between without having to reinstall my npm packages.  So I might just move the source into the linux filesystem for projects that are going to be run under the bash shell.  

0

Please sign in to leave a comment.