TM_ENV is a convenient shell script that loads environment variables from a remote configuration file before executing a command.
To install TM_ENV, run:
curl -fsSL https://raw.githubusercontent.com/qrtt1/tools/main/scripts/install.sh | bash
After installation, restart your shell or run source ~/.bashrc
or source ~/.zshrc
.
tm_env [OPTIONS] COMMAND [ARGS...]
-h
,--help
: Show help message and exit.
export
: Export environment variables.
tm_env export
tm_env ./gradlew build
tm_env -h
TM_ENV looks for TM_CFG_PATH
in:
TM_CFG_PATH
environment variable.tm_env
file in current directory.tm_env
file in home directory
.tm_env
file format:
TM_CFG_PATH=gs://your-bucket/path/to/env-vars
Environment variables file format:
KEY1=value1
KEY2=value2
TM_ENV is licensed under the MIT License.