update guard for shell and add prompt

Signed-off-by: d0zingcat <iamtangli42@gmail.com>
This commit is contained in:
2025-03-06 16:57:36 +08:00
parent c6ef075754
commit 62878ba01c
2 changed files with 9 additions and 0 deletions

8
.zshrc
View File

@@ -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'
}