https://github.com/antonlindstrom/envdo
Manage environment variable profiles.
https://github.com/antonlindstrom/envdo
command-line environment environment-variables golang gpg pass
Last synced: about 1 year ago
JSON representation
Manage environment variable profiles.
- Host: GitHub
- URL: https://github.com/antonlindstrom/envdo
- Owner: antonlindstrom
- License: mit
- Created: 2017-08-16T18:52:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T04:33:45.000Z (over 3 years ago)
- Last Synced: 2025-04-15T03:17:12.394Z (about 1 year ago)
- Topics: command-line, environment, environment-variables, golang, gpg, pass
- Language: Go
- Size: 91.8 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# envdo
Manage environment variables with a command.
envdo came into existance when I realized I had multiple environment
variables set for different work, for home and for side projects. This meant
having one default and then use aliases or manually try to switch the
environment variables. Since this is a hassle I wanted to make it easy to
switch while still maintain some security.
The goal is to have all environment variables in gpg encrypted files and
import them when needed.
### Examples
List profiles:
envdo ls
Use project1 environment variables with command `env`:
envdo project1 env
Add new environment variable file:
envdo -r GPGID add profile
### Installation instructions
The command can be installed with `go get`:
go get -v github.com/antonlindstrom/envdo
## Bugs
I'm sure there are a lot of bugs or surprises, please file anything you find
and I will try to do my best to solve them.
Currently the code is very hacky and there are no tests, this was made in an
evening and works for my uses.
## Acknowledgements
This program has borrowed most of its ideas from
[Pass](https://www.passwordstore.org/). This software can be managed by Pass
and I suggest linking `~/.password-store/envvars` to `.envdo`.
## Author
This is maintained by [Anton Lindstrom](https://www.antonlindstrom.com).
## License
See [LICENSE](LICENSE) file in the current directory.