From 853bbd88eee0502216de92bad5b05e2ad1ef4b10 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Wed, 18 Nov 2020 19:54:10 -0600 Subject: [PATCH] git send-email config --- dot_gitconfig.tmpl | 18 +++++++++++++----- dot_zshrc | 13 ++++++++----- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 31023ea..6d5e65d 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -1,17 +1,25 @@ [user] - email = mail@mzhang.io - name = Michael Zhang - signingkey = 925ECC02890D5CDAE26180D4BDA47A31A3C8EE6B + email = mail@mzhang.io + name = Michael Zhang + signingkey = 925ECC02890D5CDAE26180D4BDA47A31A3C8EE6B [alias] lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit pushpr = "!f() { git push origin master;git commit --allow-empty -m 'push to execute post-receive';git push origin master; }; f" [pull] - rebase = true + rebase = true [commit] - gpgsign = true + gpgsign = true + +[sendemail] + smtpServer = mzhang.io + smtpServerPort = 465 + smtpUser = mail@mzhang.io + smtpPass = {{ pass "email/mail@mzhang.io" }} + smtpEncryption = ssl + confirm = auto # vim: set filetype=gitconfig: diff --git a/dot_zshrc b/dot_zshrc index 2b10065..1bdeba5 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -2,17 +2,20 @@ source $HOME/.local/scripts/zsh/zsh-prelude.zsh source $HOME/.local/scripts/zsh/check-update.zsh export LANG=en_US.UTF-8 + +# oh-my-zsh export ZSH="$HOME/.oh-my-zsh" ZSH_THEME="ys" - -plugins=(git zsh-syntax-highlighting) +plugins=( + git + zsh-syntax-highlighting +) +export DISABLE_AUTO_UPDATE="true" +source $ZSH/oh-my-zsh.sh # options setopt HIST_IGNORE_SPACE -export DISABLE_AUTO_UPDATE="true" -source $ZSH/oh-my-zsh.sh - export DOTNET_CLI_TELEMETRY_OPTOUT=1 # export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src" export EDITOR=nvim