Comments (7)
+1
from autoenv.
+1
from autoenv.
Fish doesn't really care about POSIX compatiblity. This is going to be hard....
from autoenv.
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.
@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.
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.
@Miguel-Alonso As you can tell from my commit: it sounds perfect to me. Thank you!
from autoenv.
Related Issues (20)
- Is the pypi version not catching up?
- Created by mistake - ignore me
- brew version is outdated. HOT 1
- Odd behavior with nvm installed HOT 3
- Broken image ref in the README
- sourcing of activate.sh on OSx Big Sur causes hanging in Terminal HOT 3
- Git installation instructions are outdated HOT 1
- Ability to not override `cd` on source
- Properly use shelltest
- Uninstall autoenv - Mac OS Ventura 13.0 HOT 2
- Error bash: 1: No such file or directory HOT 3
- Add autoenv AUR package
- Error with nvm on Mac HOT 2
- Autoenv keep asking for permission HOT 5
- autoenv_check_authz_and_run:7: read-only variable: status HOT 1
- autoenv running on all directories in parent HOT 1
- Document usable varaibles in `.env` file
- Transfer repo back to @kennethreitz HOT 2
- Source parent directory's `.env.leave` file when leaving subdirectory
- Error when entering or leaving a project with .env or .env.leave file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autoenv.