Giter Club home page Giter Club logo

Comments (7)

jmsbtlr111 avatar jmsbtlr111 commented on August 19, 2024 1

+1

from autoenv.

atourkow avatar atourkow commented on August 19, 2024

+1

from autoenv.

dasJ avatar dasJ commented on August 19, 2024

Fish doesn't really care about POSIX compatiblity. This is going to be hard....

from autoenv.

Miguel-Alonso avatar Miguel-Alonso commented on August 19, 2024

Hey, I actually started working on this (ahem, a month ago, wanted to create a pull request but got distracted). Now, I'm not a fish nor bash expert, but the tests pass and the only thing I was having trouble with was exposing AUTOENV_CUR_FILE and AUTOENV_CUR_DIR.

I have my code at https://github.com/loopbit/autoenv, all my changes are in two new files, activate.fish and tests/simple_comment_test.fish
Let me have a look to see if I'm missing something else and I'll do a PR.

from autoenv.

dasJ avatar dasJ commented on August 19, 2024

@Miguel-Alonso Thank you very much for the contribution!

I knew fish syntax was different but I thought it was at least mostly compatible with bash/sh. The work of your PR shows me otherwise: Instead, they tried to reinvent the shell.
I don't want to start an argument if this is a good idea or a dumb idea, but I don't think I can ever merge this PR.
Please don't get me wrong, your work seems to be just what it takes to bring the autoenv magic to fish. But the fish part is completely separated from the rest of autoenv so it's basically two projects in one repository and I don't really want to maintain both (testing when bugs are reported, implementing new features twice, ...).

So instead, it would be much wiser to leave the fish part out of autoenv. You could create a new repository from scratch without the bash/dash code and we could link to each other in the readmes.
As you can see with #129 and #130 I plan to change a lot of things in autoenv and it would be great if we could keep compatibility. Please let me know if you are interested in this kind of collaboration or if you have a better idea 👍

from autoenv.

Miguel-Alonso avatar Miguel-Alonso commented on August 19, 2024

No problem at all, what you say makes total sense (and yeah, the decision to rewrite fish from scratch is weird, to say the least, but it is a nice shell).

I've just created a new repository at loopbit/autoenv_fish to keep the fish stuff. I'll make it clear in the README that it is just a translation of this project and, probably, a few versions behind the original 😄.

As for moving forward, what I'll probably do is to keep an eye on your tests and base my work on that. Does that sound good to you?

from autoenv.

dasJ avatar dasJ commented on August 19, 2024

@Miguel-Alonso As you can tell from my commit: it sounds perfect to me. Thank you!

from autoenv.

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.