Git Product home page Git Product logo

Comments (2)

Mic92 avatar Mic92 commented on August 21, 2024

How about a bash/zsh function that sources NIX_LD and NIX_LD_LIBRARY_PATH on demand?

from nix-ld.

tobiasBora avatar tobiasBora commented on August 21, 2024

Sounds great as it avoids breaking existing stuff, and it seems quite flexible (we could fetch the data the first time the user uses the command, provide various "profiles" depending on the apps to install…). Just it may be a bit annoying to write one function for every shell (there are many more shells than zsh and bash), but we can certainly eithen start a new shell like nix-shell to populate the variables and drop the user in it's wanted shell after (just if a user wants to enable it in it's .bashrc/.profile it would not work ), or additionally provide values in NIX_LD_DEFAULT so that one can just write a few export NIX_LD=NIX_LD_DEFAULT if needed. Or explicitely ask the user to pipe the output to exec or alike, providing multiple options depending on the shell.

from nix-ld.

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.