(mirror) personal dotfiles github.com/crescentrose/dotfiles
at main 12 lines 381 B view raw
1export def --env to-env [] { 2 let secrets = (from-op) 3 load-env $secrets 4 $env.SECRETS_LOADED = ($secrets | columns | length) 5} 6 7export def from-op [] { 8 op signin --account my.1password.com 9 op item get "Shell Environment" --vault "Development" --format json 10 | jq '.fields | map(select(.section.label == "Environment")) | map({(.label): .value}) | add' 11 | from json 12}