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
- Host: GitHub
- URL: https://github.com/flox/flox-direnv
- Owner: flox
- License: mit
- Created: 2024-02-17T23:57:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-03T21:54:29.000Z (4 months ago)
- Last Synced: 2025-06-10T11:45:48.121Z (4 months ago)
- Topics: developer-tools, direnv, flox, shell
- Homepage: https://flox.dev/
- Size: 10.7 KB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!
...