rs-env

Features

Concept

concept

Installation

bash cargo install rs-env

Basic Usage

```bash

simple activation of environment

source <(rsenv build ) ```

Comprehensive Usage

```bash Hierarchical environment variable management

Usage: rsenv [OPTIONS] [NAME] [COMMAND]

Commands: build Build the resulting set of environment variables envrc Write the resulting set of environment variables to .envrc (requires direnv) files Show all files involved in building the variable set edit Edit the FZF selected file and its linked parents (dependency chain) select FZF based selection of environment and update of .envrc file (requires direnv) link Link files into a dependency tree tree Show all dependency trees tree-edit Edit all dependency trees side-by-side (vim required) help Print this message or the help of the given subcommand(s)

Arguments: [NAME] Optional name to operate on

Options: -d, --debug... Turn debugging information on --generate [possible values: bash, elvish, fish, powershell, zsh] --info
-h, --help Print help -V, --version Print version ```


Integrations

direnv

direnv activates environments automatically. - rs-env can update the .envrc file with the selected dependency graph variables.

JetBrains Integration

Life injection of environment variables: - Plugin EnvFile can be used to life-inject environment variables. - Use the script runenv.sh as the "EnvFile" script (tick executable checkbox !). - The environment variable RUN_ENV parametrizes which environment to load. - It will look for a file <RUN_ENV>.env in the specified directory.

jetbrain

Development