Skip to content

Commit d93492c

Browse files
committed
Move to zshrc
Doesn't help with UI commits but works for CLI
1 parent be39148 commit d93492c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

chezmoi/dot_config/zsh/private_dot_zshrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ if [ -n "$CODESPACES" ]; then
118118
export GOPRIVATE=
119119
export GONOPROXY=
120120
export GONOSUMDB='github.com/github/*'
121+
# Unset these as GitHub doesn't verify commits by the default GitHub <[email protected]> set by default in Codespaces
122+
# This doesn't help things if you use the UI to commit
123+
unset GIT_COMMITTER_EMAIL
124+
unset GIT_COMMITTER_NAME
121125
fi
122126
export HOMEBREW_BUNDLE_FILE=$XDG_CONFIG_HOME/homebrew/Brewfile
123127
export IRBRC=$XDG_CONFIG_HOME/irb/irbrc

script/codespaces-post-start

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,4 @@ if [ ! -f "${HOME}/.ssh/git_signing_ed25519" ]; then
2525
# Takes this from my Codespaces secrets config on GitHub
2626
echo "$GIT_SIGNING_KEY" > "${HOME}/.ssh/git_signing_ed25519"
2727
chmod 600 "${HOME}/.ssh/git_signing_ed25519"
28-
# Unset these as GitHub doesn't verify commits by the default GitHub <[email protected]> set by default in Codespaces
29-
unset GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME
3028
fi

0 commit comments

Comments
 (0)