WSL: Fish prompt broken after converting WSL1 instance to WSL2. (link to video included)
When I install WSL, I set up Fish as my default shell, and then install a couple of plugins.
Once I converted an existing WSL instance to WSL2, that became unusable.
-
Your Windows build number: (Type
verat a Windows Command Prompt) Windows 10 Build 18917.1000 -
What you’re doing and what’s happening: wsl --set-version <distro> 2
Open new window of <distro>
See video of this happening at https://1drv.ms/v/s!ApEXGJp7Ipuxi6RJIZhqOstDpVV7rg.
NOTE: I edited the video to remove dead air. Some operations seem to have finished much quicker than they actually did. It’s still 4 minutes and change.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (7 by maintainers)
Ok, I found the problem, after having reinstalled my Ubuntu 20.04 session several times with this problem each time when starting a Fish shell session.
Everything is in order if I disable the Fast start-up mode of Win10 … See https://stephenreescarter.net/wsl2-network-issues-and-win-10-fast-start-up/
Hoping to help.
Strange if I do a
su myuserafter starting, the fish session is ok…Okay, so I have the same setup. fish on WSL 2 with Ubuntu and omf → bobthefish, it was all working fine until today when I restarted my computer. I have the same problem when opening terminal but with a lot more entries, even uninstalling Java to remove it from the path leaves me with all the other ones.
I realize this is being tracked in #4104 but since the fix was here I was wondering if there’s a temporary fix for this too, hopefully 😶
@aadibajpai Any update I have the same Issue Just upgraded to WSL2 and I have this with fish the same output as you
You mentioned the workaround isn’t working, please make sure to run the window with administrator privileges and the
mklinkcommand is only incmd(You can see I ran cmd from PowerShell, hopefully it’s not too confusing!)Yup this is a duplicate of #4104 , it’s due to the link in the Java folder.
Here’s a temporary workaround (though I don’t know how stable it will be since I’m sure that java_target folder will often change)
We’ll track your issue on #4104! Thanks for filing it, I’ll close this one out as a duplicate.