Giter Site home page Giter Site logo

Per directory $env about nushell HOT 9 CLOSED

nushell avatar nushell commented on May 3, 2024 1
Per directory $env

from nushell.

Comments (9)

dysinger avatar dysinger commented on May 3, 2024 1

I use direnv with fish shell and I need a replacement.

from nushell.

dbarnett avatar dbarnett commented on May 3, 2024

Would this be the default $env behavior, or how would you use it?

from nushell.

wycats avatar wycats commented on May 3, 2024

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.

jedahan avatar jedahan commented on May 3, 2024

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.

mlh758 avatar mlh758 commented on May 3, 2024

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.

thegedge avatar thegedge commented on May 3, 2024

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.

samhedin avatar samhedin commented on May 3, 2024

I would like to give this a try, if it's alright!

from nushell.

sophiajt avatar sophiajt commented on May 3, 2024

@samhedin - please do! Feel free to reach out on discord if you have questions or want to brainstorm.

from nushell.

arashout avatar arashout commented on May 3, 2024

This can probably be closed with @samhedin PRs

from nushell.

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.