An open API service indexing awesome lists of open source software.

https://github.com/flox/flox-direnv

direnv library for using Flox in your .envrc enabled projects
https://github.com/flox/flox-direnv

developer-tools direnv flox shell

Last synced: about 2 months ago
JSON representation

direnv library for using Flox in your .envrc enabled projects

Awesome Lists containing this project

README

          

## Installation

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

By using Direnv's `source_url`:

```sh
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

```console
$ 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.

```console
$ echo 'use flox' >> .envrc
```

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

```console
$ echo 'use flox --remote=/' >> .envrc
```

And to trust the remote envrionment explicitly.

```console
$ echo 'use flox --trust --remote=/' >> .envrc
```

## Hello from the Flox team!

...