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
@@ -28,6 +28,14 @@ set -gx ANDROID_SDK_ROOT $ANDROID_HOME
|
||||
# Git hosts (non-secret; tokens are in secrets.fish)
|
||||
set -gx GITEA_LOGIN prad.codes
|
||||
set -gx GITLAB_HOST git.sonr.org
|
||||
|
||||
# GITHUB_TOKEN from gh's keyring login — never stored on disk. An inherited
|
||||
# value wins, so nested shells skip the gh call.
|
||||
if not set -q GITHUB_TOKEN; and command -q gh
|
||||
set -l _gh_token (gh auth token 2>/dev/null)
|
||||
test -n "$_gh_token"; and set -gx GITHUB_TOKEN $_gh_token
|
||||
end
|
||||
|
||||
set -gx EDITOR nvim
|
||||
set -gx VISUAL nvim
|
||||
|
||||
|
||||
Reference in new issue
Block a user