diff --git a/.zshrc b/.zshrc index c193bda..90bfdcd 100644 --- a/.zshrc +++ b/.zshrc @@ -175,10 +175,18 @@ function git_config() { } function git_config_work() { + if [ ! $# -eq 2 ]; then + echo 'should be like git_config_work {name} {email}' + exit 1 + fi git_config $1 $2 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF23DQtdH5PODF9fYUHr49I1J3lfKLAPk4LG54MVUTcg' } function git_config_play() { + if [ ! $# -eq 1 ]; then + echo 'should be like gait_config_play {email}' + exit 1 + fi git_config d0zingcat $1 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPaVruhhL4O9BiAncnW1wH3jc7/hsqsXLknA8Xtnjjee' } diff --git a/setup.sh b/setup.sh index 7a84e95..c6a8fba 100755 --- a/setup.sh +++ b/setup.sh @@ -212,6 +212,7 @@ function recover_kubectl() { function new_recover() { # recover_rust recover_kubectl + echo "don't forget to change the email address in git config" } function post_recover() {