Skip to content

Instantly share code, notes, and snippets.

@hermannolafs
Created February 11, 2025 09:22
Show Gist options
  • Save hermannolafs/83cce0c8b23b6768ee5ad17f76ebcc58 to your computer and use it in GitHub Desktop.
Save hermannolafs/83cce0c8b23b6768ee5ad17f76ebcc58 to your computer and use it in GitHub Desktop.
make command to convert .env to .env.fish (with --global)
convert-env-file-to-fish: ## take the existing .env and convert to fish format in .env.fish
@awk '{ split($$1, a, "="); printf "set -gx %s \"%s\"\n", a[1], a[2]; }' .env > .env.fish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment