-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fe5973
commit b563067
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,12 +28,14 @@ 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 | ||
{{ $user := fromJson (output "sh" "-c" "pkgx gh api https://api.github.com/user && true || echo '{}'") }} | ||
{{- $user := fromJson (output "sh" "-c" "pkgx gh api https://api.github.com/user 2>/dev/null || true") -}} | ||
{{- if and $user.login $user.name $user.id }} | ||
GITHUB_USER={{ $user.login | quote }} | ||
GIT_AUTHOR_NAME={{ $user.name | quote }} | ||
GIT_AUTHOR_EMAIL={{ printf "%v+%[email protected]" $user.id $user.login | quote }} | ||
GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME | ||
GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL | ||
{{- end }} | ||
|
||
# Bash | ||
BASH_SILENCE_DEPRECATION_WARNING=1 | ||
|