Giter Site home page Giter Site logo

Comments (9)

mqudsi avatar mqudsi commented on September 22, 2024 1

What's your $PATH under WSL2? WSLv1 (and I think WSLv2, but I'm not sure) have an insanely long PATH by default.

from fish-shell.

Kodp avatar Kodp commented on September 22, 2024

Actually, I checked the path before, but I didn't think it was too long at the time because it can be that long under Windows; Then I compared it with another server and found that it was indeed quite long.... Thanks! Problem solved. But I still have a question. It seems that having a long PATH under Windows does not significantly slow down PowerShell or even when using oh-my-posh, does it?

from fish-shell.

mqudsi avatar mqudsi commented on September 22, 2024

Two different issues, first is that accessing Windows paths from WSL Linux binaries is slow because of how Microsoft implemented it, second is that normal pattern is to look up commands you expect to find, which means you can stop looking as soon as you find the first match. By contrast, if you have something like if not command -q foo and there's a good chance foo isn't found, you need to search each of those directories and not stop until you have exhausted them all.

#10506 attempts to work around this specific WSL issue.

from fish-shell.

Kodp avatar Kodp commented on September 22, 2024

Thank you for your very good answer

from fish-shell.

mqudsi avatar mqudsi commented on September 22, 2024

For reference, this was closed by the combination of 3374692 (which is #10506) and 8c62f73 (which extended that to WSLv2).

from fish-shell.

krobelus avatar krobelus commented on September 22, 2024

do we want changelog entries for these fixes?

from fish-shell.

mqudsi avatar mqudsi commented on September 22, 2024

do we want changelog entries for these fixes?

Definitely for this one. I already tagged the PR with the release notes label.

from fish-shell.

krobelus avatar krobelus commented on September 22, 2024

I already tagged the PR with the release notes label.

As far as I see it the process for changelog is to look at every issue/PR that is not yet mentioned in CHANGELOG.rst (and belongs to the relevant milestone).
So I don't use labels for this (or anything else).

from fish-shell.

mqudsi avatar mqudsi commented on September 22, 2024

I don't know myself, I think it's something I saw others doing :)
But I added this to the changelog.

from fish-shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.