New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prompt colouring #140
Comments
See |
Ah, I see. I'm a bit new to wsl :) Interesting, if I invoke the bash shell from a windows command prompt then the prompt is coloured. If I start the bash shell through wsltty it is not. I edited the .bashrc file in ~ and uncommented the force_color_prompt=yes variable. Thanks for your patience. |
WSL in windows console is not coloured for me. You may have configured something already. Without any information about your environment, not even the WSL distribution, it is not possible to analyse this remotely. |
I have the same issue, the prompt is coloured as per bash settings, and in fact when I open up a WSL console by either the default terminal emulator or the terminal emulator inside VS Code it works. .bashrc is set to enable prompt colors whenever the surrounding terminal emulator supports it, I can override this and forcefully apply colors, but it doesn't sound like the best approach. My WSL distribution is the standard "ubuntu" package from the store, installed before 18.04 release, I never updated from 16 to 18. and it is not one of the available version specific packages currently available as "ubuntu 16.04" and "ubuntu 18.04" respectively. |
Which Windows 10 version do you use? Can you do a test? Create a user with |
And |
@Biswa96 created a new testcolor user from standard terminal launching ubuntu.exe with: I also added an @mintty probably this will clarify what you were asking for
|
I think I've found the culprit, seems like $TERM is "xterm" in mintty, and "xterm-256color" in the working ones. |
So it is just a matter of default mintty settings, it has "xterm" where the default wsl one exposes itself as "xterm-256color". Now works as expected. |
Hi,
Not exactly a problem, but...
Is there a way of having the shell prompt (username@machine) a dirrent colour to the rest of the command line? Much like the standard wsl bash shell prompt?
Regards
Graham
The text was updated successfully, but these errors were encountered: