Skip to content

direnv library for using Flox in your .envrc enabled projects

License

Notifications You must be signed in to change notification settings

flox/flox-direnv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Installation

The Flox Direnv intigation can be installed in the following ways.

By using Direnv's source_url:

source_url "https://raw.githubusercontent.com/flox/flox-direnv/v1.1.0/direnv.rc" 'sha256-c2YCane8WGmYeCDc9wIZyVL8AgbdfhPaEoM+5aFuysw='

By copying the direnv.rc file into the ~/.config/direnv/lib/ directory

$ curl -o "${HOME}/.config/direnv/lib/flox-direnv.sh" "https://raw.githubusercontent.com/flox/flox-direnv/v1.1.0/direnv.rc" 

Usage

Add the following to your project's .envrc file.

$ echo 'use flox' >> .envrc

If you'd like to use a FloxHub environment instead of the local one, populate your .envrc as follows.

$ echo 'use flox -r=<owner>/<name>' >> .envrc

And to trust the FloxHub envrionment explicitly.

$ echo 'use flox --trust -r=<owner>/<name>' >> .envrc

Hello from the Flox team!

...

About

direnv library for using Flox in your .envrc enabled projects

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5