Skip to content

Commit

Permalink
Move git and github envs into profile
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmorganson committed Apr 11, 2024

Verified

This commit was signed with the committer’s verified signature.
jasonmorganson Jason Morganson
1 parent 0d48b0c commit e7ae220
Showing 4 changed files with 9 additions and 21 deletions.
2 changes: 0 additions & 2 deletions home/dot_config/nushell/config.nu
Original file line number Diff line number Diff line change
@@ -17,8 +17,6 @@ overlay use nu_scripts/aliases/chezmoi/chezmoi-aliases.nu
overlay use nu_scripts/aliases/git/git-aliases.nu
overlay use git-alias.nu
overlay use aliases.nu
overlay use github.nu
overlay use git.nu
use theme.nu
source ~/.config/nushell/scripts/prompt.nu
11 changes: 0 additions & 11 deletions home/dot_config/nushell/scripts/git.nu.tmpl

This file was deleted.

5 changes: 0 additions & 5 deletions home/dot_config/nushell/scripts/github.nu.tmpl

This file was deleted.

12 changes: 9 additions & 3 deletions home/dot_profile.tmpl
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# XDG
source ~/.cache/xdg.sh

# LS_COLORS
export LS_COLORS={{ output "pkgx" "vivid" "--color-mode" "8-bit" "generate" "one-dark" | trim | quote }}

# PATH
export PATH="$HOME/.local/bin:$HOME/.orbstack/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin"

# LS_COLORS
export LS_COLORS={{ output "pkgx" "vivid" "--color-mode" "8-bit" "generate" "one-dark" | trim | quote }}

# Github
export GITHUB_USER={{ output "sh" "-c" "pkgx gh api https://api.github.com/user --jq '.login' || true" | trim | quote }}
export GIT_AUTHOR_NAME={{ output "sh" "-c" "pkgx gh api https://api.github.com/user --jq '.name' || true" | trim | quote }}
export GIT_AUTHOR_EMAIL={{ output "sh" "-c" "pkgx gh api https://api.github.com/user/public_emails --jq '.[0].email' || true" | trim | quote }}
export GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
export GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL

0 comments on commit e7ae220

Please sign in to comment.