mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
feat(config): auto-load GITHUB_TOKEN and add obscura skill source
This commit is contained in:
1 parent
ed0c539418
commit
a6ca8998e4
6 files changed
+44
-5
No files matched your search
@@ -29,6 +29,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/zsh; source of truth: .chezmoidata/aliases.yaml)
|
||||
[ -f "$HOME/.config/shell/aliases.sh" ] && . "$HOME/.config/shell/aliases.sh"
|
||||
|
||||
|
||||
Reference in new issue
Block a user