diff --git a/ruby/gemrc b/ruby/gemrc index d93b427..d5c2f1d 100644 --- a/ruby/gemrc +++ b/ruby/gemrc @@ -3,7 +3,9 @@ :bulk_threshold: 1000 :sources: - https://gems.ruby-china.com +- https://rubygems.org/ :update_sources: true :verbose: true +:concurrent_downloads: 8 benchmark: false gem: "--no-document" diff --git a/zsh/functions.zsh b/zsh/functions.zsh index b66fa01..1a17f2a 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -388,6 +388,8 @@ function gc { echo 'invalid option...' done emails=($GIT_EMAILS) + git config user.name $name + git config user.email $emails[$index] (git commit --verbose $*) || return (git commit --amend --author="$name <$emails[$index]>") || return }