Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 918 Bytes

README.md

File metadata and controls

39 lines (25 loc) · 918 Bytes

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!

...