Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/cloud303-cholden/rv

CLI like direnv for project-based environment management. Features nested configs within a single TOML file.
https://github.com/cloud303-cholden/rv

Last synced: 7 days ago
JSON representation

CLI like direnv for project-based environment management. Features nested configs within a single TOML file.

Awesome Lists containing this project

README

        

## rv
`rv` is a CLI tool for profile-style management of environment variables. If your envrionment is simple, `direnv` is definitely the better option. For more complex environments, `rv` provides ultimate flexibility with a `direnv`-inspired interface.

### Install
```sh
cargo install --git https://github.com/cloud303-cholden/rv.git
```
### Usage
`rv` hooks into your shell and doesn't load environment variables until you explcitily allow it. `rv` looks for an `rv.toml` file in the current directory, and uses the profile passed via `rv set ` to activate an environment.
### Configuration
The configuration file must be located at `$XDG_CONFIG_HOME/rv/config.toml`. Below is the default configuration:
```toml
[activated]
symbol = "rv ↑ "
style = "green bold"

[activated_dir]
symbol = ""
style = "white"

[deactivated]
symbol = "rv ↓ "
style = "red bold"

[deactivated_dir]
symbol = ""
style = "white"

[added]
symbol = "  "
style = "green bold"

[removed]
symbol = "  "
style = "red bold"

[changed]
symbol = "  "
style = "208 bold"
```