penguin/utils

my env utils

commit 5fe9b2ef34b79baca969fbce821ef9cab9cdd4df

author斟酌 鵬兄 <tgckpg@gmail.com>
date2022-08-11T16:19:32Z
subjectcreate .gitconfig only if not exist
commit 5fe9b2ef34b79baca969fbce821ef9cab9cdd4df
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2022-08-11T16:19:32Z

    create .gitconfig only if not exist
---
 bash/bashrc/sources/31_git-utils | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bash/bashrc/sources/31_git-utils b/bash/bashrc/sources/31_git-utils
index a8779ac..0a7719d 100644
--- a/bash/bashrc/sources/31_git-utils
+++ b/bash/bashrc/sources/31_git-utils
@@ -15,7 +15,7 @@ function git-config-as {
 }
 
 
-if [ -f "$HOME/.gitconfig" ]; then
+if [ ! -f "$HOME/.gitconfig" ]; then
     cat << ___CONF___ > "$HOME/.gitconfig"
 [alias]
     la = log --graph --full-history --date-order --all --pretty=format:'%Cred%h%Creset %ad %C(bold blue)[%an]%Creset | %C(white)%s%Creset %C(yellow)%d%Creset' --date=relative