Skip to content

Commit

Permalink
Guard for login
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmorganson committed Oct 26, 2024
1 parent 6236713 commit da899b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home/dot_profile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ PATH="$HOME/.rye/shims:$HOME/.local/bin:$HOME/.orbstack/bin:/opt/homebrew/bin:/u
LS_COLORS={{ output "pkgx" "vivid" "--color-mode" "8-bit" "generate" "one-dark" | trim | quote }}

# Github
GITHUB_USER={{ output "sh" "-c" "pkgx gh api https://api.github.com/user --jq '\"\\(.id)+\\(.login)@users.noreply.github.com\"'" | trim | quote }}
GITHUB_USER={{ output "sh" "-c" "pkgx gh api https://api.github.com/user --jq '.login' || true" | trim | quote }}
GIT_AUTHOR_NAME={{ output "sh" "-c" "pkgx gh api https://api.github.com/user --jq '.name' || true" | trim | quote }}
GIT_AUTHOR_EMAIL={{ output "sh" "-c" "pkgx gh api https://api.github.com/user --jq '\"\\(.id)+\\(.login)@users.noreply.github.com\"' || true" | trim | quote }}
GIT_AUTHOR_EMAIL={{ output "sh" "-c" "pkgx gh api https://api.github.com/user --jq '\"\(.id)+\(.login)@users.noreply.github.com\"' || true" | trim | quote }}
GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL

Expand Down

0 comments on commit da899b9

Please sign in to comment.