-
Notifications
You must be signed in to change notification settings - Fork 824
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
Cannot set fish as "default" shell #2199
Comments
@iamdevlinph - You cannot set other shells except bash to DEFAULT shell, but could use other shell like fish or zsh. |
It's not really setting fish as default, per se. Rather, having bash run I will try it first and also the script in the |
I tried adding
But when I start Same result with
|
@iamdevlinph - Yes. I said "You cannot set other shells except bash to DEFAULT shell". I think... you want a NEW feature to bash.exe.
It looks like rather " UPDATE: bash.exe on the current public release version of WSL cannot launch user defined DEFAULT SHELL, but wsl.exe on preview Insider builds version could do, I heard. So, use Insider builds or wait until public relase if you want to user defined default shell. |
@sunjoong I see. Thanks for the update. Closing this one, I guess. |
In recent insider builds you'll find a binary called wsl.exe which will respect the default shell in your /etc/passwd file. You can change your default shell via the chsh command. |
@benhillis Uhh. So the part |
Correct, except you'll have to supply the full path to the fish binary. Then the next time you launch wsl.exe it will run fish. Bash.exe will continue to launch /bin/bash. |
Alright. So Thanks |
For me But I found another workaround: Just add command |
This workaround isn't that efficient since it still runs your |
I've been grappling with this too, I'm on Slow Ring Insiders so running something close to I get hit-and-miss when trying to get The solutions I've tried are:
My solution now is that I'll just launch with |
Adding But all the other solutions you tried will not work with the current |
td:dr; You'll need to have the So options are to wait for the Fall Creators Updated to get to release and manually run |
I'm not actually using |
Ohh. That's new to me. I have the Fall Creators Update on my laptop but I installed WSL using the command line and it got me the So maybe default shells only work with the |
Chsh will also work with Ubuntu.exe, opensuse, etc. |
So is there any update nowdays, I kinda tried the stuff above, but currently my solution is like @benhillis said. |
So, two years later, is there any update? |
I'm now using
|
I tried it multiple times yesterday with no luck, but today it worked. Nevermind. |
If you are using Windows Terminal, you can just pass |
I know this is an old thread, but for those still dealing with this (like me... even on the current Preview version of WSL), |
@VArterJr . Thanks, it works! |
Your Windows build number:
Microsoft Windows [Version 10.0.15063]
What you're doing and what's happening:
Cannot set fish as default shell
I've tried
When I run
Ubuntu on Windows
it's just a blank screen.What's wrong / what should be happening instead:
When starting
Ubuntu on Windows
the default shell right away should befish
C:\Windows\System32\bash.exe ~ -c /usr/bin/fish
works in my other pc. But I forgot at what build I installed wsl (I'm already in the fast ring).EDIT 1
Trying to reinstall.
EDIT 2
Didn't help
EDIT 3
Also tried adding
on top of
~/.bashrc
as stated hereThe text was updated successfully, but these errors were encountered: