mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-06-06 07:26:52 +00:00
update guard for shell and add prompt
Signed-off-by: d0zingcat <iamtangli42@gmail.com>
This commit is contained in:
8
.zshrc
8
.zshrc
@@ -175,10 +175,18 @@ function git_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function git_config_work() {
|
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'
|
git_config $1 $2 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF23DQtdH5PODF9fYUHr49I1J3lfKLAPk4LG54MVUTcg'
|
||||||
}
|
}
|
||||||
|
|
||||||
function git_config_play() {
|
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'
|
git_config d0zingcat $1 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPaVruhhL4O9BiAncnW1wH3jc7/hsqsXLknA8Xtnjjee'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user