-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Fedora 39 Prompt defaulting to -bash-5.2#
-> \s-\v\$
#214
Comments
Hello @ElvenSpellmaker , I have been testing with many installations, WSL versions, with and without Store version, many distros and always Regards, |
Hey @crramirez, I can try to debug further, but I'm almost sure I don't set it anywhere beforehand, I wouldn't want it to be just |
Ahh OK I see the problem, it's partly PEBCAK (🤦🏻♂️) and partly that the default prompt since the colour has been introduced for non-colour terminals is set to the default useless rather than the previous one which is confusing. >.>; it's Terminal level thing ( Really at its core, it's a Fedora problem and they should provide a better default prompt for those on |
Describe the bug
Since Fedora 39, the prompt now displays an unhelpful
-bash-5.2#
instead of something likeroot@<machine id>:~#
Because
bash-color-prompt
is installed since 39 the TERM needs to bexterm-color
orxterm-256color
for this to work. The default isxterm
which forces an unhelpful prompt as it's no longer set:It'd be helpful to either set the TERM to
xterm-256color
by the distro before this script is called, i.e. in00-remix.sh
, or there should be a script that runs after to set a monochrome version of 38's prompt in lieu if the user hasn't got a TERM set withcolor
in it.To Reproduce
Steps to reproduce the behavior:
-bash-5.2#
Expected behavior
A nicer prompt should be set up by
bash-color-prompt.sh
by default.Screenshots
Without
With adding TERM
Additional context
Basic Troubleshooting Checklist
[x] I have searched Google for the error message.
[x] I have checked official WSL troubleshooting documentation: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#confirm-wsl-is-enabled.
[x] I have searched the official Microsoft WSL issues page: https://github.com/Microsoft/WSL/issues.
[x] I have searched the WLinux issues page: https://github.com/WhitewaterFoundry/WLinux/issues.
[x] I have reset WLinux: Settings->Apps->Apps & features->WLinux->Advanced Options->Reset.
[x] I have disabled and re-enabled WSL in Windows Features.
[x] I have run Windows 10 updates and restarted.
What other troubleshooting have you attempted?
Insert here:
Adding
export TERM="xterm-256color"
just before the if statement fixes this, but it should be enabled out of the box. Or it should at least generate the same monochrome prompt as before, allowing users to enable colour later.Fedora Remix for WSL Version
# cat /etc/fedora-release Generic release 39 (Generic)
Insert here:
Windows Build
For help on retrieving: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#check-your-build-number
The text was updated successfully, but these errors were encountered: