Collecting my attempts to improve at tech, art, and life

just

Just a command runner

Loading from .env

Once you tell it where to look, just loads dotenv files and treats its contents as environment variables.

So if my .env looks like this:

VAULT_HOME="/home/random/vaults/v2024"

And my justfile has this:

dotenv-file := ".env"

export:
  obsidian-export $VAULT_HOME site/content

Then I can stop hard-coding paths in my obsidian-export invocation.

Related


Added to vault 2024-01-15. Updated on 2024-01-26