https://github.com/amancevice/shenv
dotenv for your shell
https://github.com/amancevice/shenv
cli command-line-tool dotenv shell
Last synced: 28 days ago
JSON representation
dotenv for your shell
- Host: GitHub
- URL: https://github.com/amancevice/shenv
- Owner: amancevice
- Created: 2022-02-20T13:46:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-25T13:56:04.000Z (over 2 years ago)
- Last Synced: 2025-02-10T18:11:33.756Z (3 months ago)
- Topics: cli, command-line-tool, dotenv, shell
- Language: Shell
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shenv
dotenv for your shell
## Install
Install with Homebrew:
```bash
brew tap amancevice/tap
brew install amancevice/tap/shenv
```Add the following to your shell profile:
```bash
eval "$(shenv init -)"
```## Usage
Create a `.env` file
```bash
cat <<-EOS > .env
VAR_1=val_1
VAR_2=val_2
VAR_3=val_3
EOS
```Source the file with `shenv`:
```bash
shenv
```By default, `shenv` will look for a file called `.env`, but you can override this with arguments:
```bash
shenv .env.development
```Or pass multiple files:
```bash
shenv .env.1 .env.2
```Files are sourced in the order you pass them.