Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/cloud303-cholden/rv
- Owner: cloud303-cholden
- License: mit
- Created: 2024-04-11T01:32:54.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-09T15:04:35.000Z (9 months ago)
- Last Synced: 2025-01-28T07:02:01.104Z (14 days ago)
- Language: Rust
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"
```