Comments (9)
I use direnv with fish shell and I need a replacement.
from nushell.
Would this be the default $env behavior, or how would you use it?
from nushell.
The basic idea is that a directory could have something like a .nu
file (toml, probably) in it that could supplement the environment and possibly the path.
from nushell.
whats the difference between this being built-in, versus having a .nurc
that just does test -f $PWD/.env && grep ^export $PWD/.env | source -
or something along those lines.
from nushell.
In other shells I use direnv to put a .envrc
file in some of my dev projects where the app is normally configured via environment variables. When deployed they would already be setup with Kubernetes or Chef or something but in development it saves me some typing.
from nushell.
Yeah, we definitely want to make this work, and believe it's a generally useful feature that it should be part of the core.
from nushell.
I would like to give this a try, if it's alright!
from nushell.
@samhedin - please do! Feel free to reach out on discord if you have questions or want to brainstorm.
from nushell.
This can probably be closed with @samhedin PRs
from nushell.
Related Issues (20)
- from ssv: max matches HOT 6
- How can I set the value of a record entry to the output of a command? HOT 4
- `help p` always shows help for the `p` built-in HOT 3
- Add command to remove entry from history. HOT 9
- Prompt rendering 2 times if prompt contains newline, when first starting nushell and pressing a key HOT 1
- `help str` shows `std assert str contains` as a subcommand when `std` is `use`d HOT 1
- Inconsistent path expansions between `ls`, `cp`, `mv`, `rm`, and `mkdir` HOT 5
- Weird list parsing
- Wrong hint message in `into record` call HOT 6
- Fix the parsing precedence of `not` operator HOT 1
- Parentheses-based string interpolation makes for ugly regexes HOT 5
- Add parameters to `query db` HOT 3
- List of records is not transformed into a table if record fields are not all in the same order
- modules don't have "extra usage" but commands do HOT 5
- Name not found PATH HOT 2
- Failed to remove invalid symlinks in Windows
- commandline -e not working/crashing HOT 4
- --help/help displays aliases as subcommands
- Pane/terminal based history HOT 6
- Why I can't modify $env.PATH in a custom command? HOT 1
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 nushell.