feat(config): auto-load GITHUB_TOKEN and add obscura skill source

This commit is contained in:
Prad Nukala committed 2026-09-30 15:02:23 -04:00
1 parent ed0c539418
commit a6ca8998e4
6 files changed
+44 -5

No files matched your search

+8
View File
@@ -33,6 +33,14 @@ for _adir in "$ANDROID_HOME/platform-tools" "$ANDROID_HOME/cmdline-tools/latest/
done
unset _adir
# GITHUB_TOKEN from gh's keyring login — never stored on disk. An inherited
# value wins, so nested shells skip the gh call.
if [ -z "${GITHUB_TOKEN:-}" ] && command -v gh >/dev/null 2>&1; then
_gh_token="$(gh auth token 2>/dev/null)"
[ -n "$_gh_token" ] && export GITHUB_TOKEN="$_gh_token"
unset _gh_token
fi
# Shared aliases (same set as fish/bash; source of truth: .chezmoidata/aliases.yaml)
[ -f "$HOME/.config/shell/aliases.sh" ] && . "$HOME/.config/shell/aliases.sh"