pulsar-plugins/.envrc

9 lines
298 B
Plaintext
Raw Permalink Normal View History

2023-07-02 23:35:40 +02:00
#!/usr/bin/env bash
use flake
if command -v gh >/dev/null && gh auth token >/dev/null; then
export NIX_CONFIG="access-tokens = github.com=$(gh auth token)"
else
>&2 echo "WARNING: You have no github token configured."
>&2 echo "WARNING: consider running 'gh auth login' then 'direnv reload'"
fi