-
Notifications
You must be signed in to change notification settings - Fork 846
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
Windows local host PATH not appended when starting with zsh #12235
Comments
Diagnostic information
|
I was unable to reproduce the issue in quick manner:
Then:
Restarted Ubuntu. Went through zsh setup. Configured new completion system, but that was all. Then:
Could it be something in your zsh config? |
@Wakotu: Do you see the same behavior with let's bash ? I wonder if you have something in your zshrc that override $PATH |
|
I guess your're right. WSL worked the same way in my machine in your manner. screenshot below. |
and I notice that only the first zsh session is broken. Exit first session and launch a new zsh session, the second one is fine. |
My encounter with this issue has some unique twists, but is similar enough that I think it's worth adding here. Had an issue with When dealing with NixOS on WSL2, I found that |
I setup similar environment on a machine that runs windows 10 22H2. And that problem occured, too. but a third machine which runs windows 10 22H2, with ubuntu 22.04 wsl2 distro didn't seem to show that problem . |
@Wakotu let's look at what's actually happening inside zsh. Could you share the out of:
This should let us see if something happens to $PATH. |
Preliminaries:
Run the command without launching docker desktopcommand;
stdout output: phenomenon: Run the command after launching docker desktopcommand;
stdout output: phenomenon: |
I don't see the "echo $PATH" commands in the output files. Could you run the entire shell session, include the "echo $path" under |
I think video would be more intuitive. |
Windows Version
Microsoft Windows [版本 10.0.26100.2161]
WSL Version
2.3.24.0
Are you using WSL 1 or WSL 2?
Kernel Version
Linux version 5.15.153.1-microsoft-standard-WSL2 (root@941d701f84f1) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Fri Mar 29 23:14:13 UTC 2024
Distro Version
24.04
Other Software
Docker Desktop(Windows), version 4.34.3 (170107)
zsh in WSL, version 5.9
tmux in WSL, version 3.4
windows terminal, version 1.20.11781.0
zsh4humans(https://github.com/romkatv/zsh4humans) with option 'always run zsh in a tmux session' enabled
Repro Steps
chsh -s /usr/bin/zsh
wsl --shutdown
).echo $PATH
and see value ofPATH
doesn't contain paths that defined in windows local system.PATH
value well initialized.Expected Behavior
$PATH
variable should include paths that are defined in windows local host system.Actual Behavior
$PATH
variable didn't include paths that are defined in windows local host system.Diagnostic Logs
WslLogs-2024-11-04_22-01-51.zip
The text was updated successfully, but these errors were encountered: