Created
September 18, 2022 21:16
-
-
Save mplewis/493804238a0a9ad32a1afcafa319aa5b to your computer and use it in GitHub Desktop.
Put this in your path as `shenv` to source .env file variables and run specific commands: `shenv development.env my-command`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
set -a; source "$1"; set +a | |
"${@:2}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment