feat .gitconfig: signingkey GPG簽名綁定

This commit is contained in:
2025-05-07 04:30:17 +08:00
parent cee037e8dd
commit 7de43b89a5
4 changed files with 18 additions and 2 deletions

View File

@@ -189,6 +189,10 @@ test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell
export PATH="$PATH:$HOME/bin"
zinit light mass8326/zsh-chezmoi
{{ if .signingkey }}
export GPG_TTY=$TTY{{ end }}
gpgconf --launch gpg-agent
# 自動補上 noglob 並禁用 Zsh 的 globbing 解析
function git_pushmulti() {
# 手動處理方括號或括號內容,並進行推送