Skip to content

direnv library for using Flox in your .envrc enabled projects

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

13 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 remote environment instead of the local one, populate your .envrc as follows.

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

And to trust the remote envrionment explicitly.

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

Hello from the Flox team!

...