add shortcut for git config

Signed-off-by: d0zingcat <iamtangli42@gmail.com>
This commit is contained in:
2025-03-06 16:48:09 +08:00
parent 7c11184136
commit c2d76d268c

15
.zshrc
View File

@@ -167,6 +167,21 @@ function git_clean() {
fi
}
function git_config() {
git config user.name $1
git config user.email $2
git config gpg.format ssh
git config user.signingkey "$3"
}
function git_config_work() {
git_config $1 $2 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF23DQtdH5PODF9fYUHr49I1J3lfKLAPk4LG54MVUTcg'
}
function git_config_play() {
git_config d0zingcat $1 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPaVruhhL4O9BiAncnW1wH3jc7/hsqsXLknA8Xtnjjee'
}
function bitnami_seal() {
if [[ $# != 2 ]]
then