diff options
author | Yann Herklotz <git@yannherklotz.com> | 2022-02-27 18:20:35 +0000 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2022-02-27 18:20:35 +0000 |
commit | 3afffe980aba1a6f4734692d1bc82f077bcbadd1 (patch) | |
tree | d5e95aaef09bff70a9b2ecc4f4087b37419b6100 | |
parent | f1a1ede6a0088be95448914b31a39d4bbf4e309e (diff) | |
download | dotfiles-3afffe980aba1a6f4734692d1bc82f077bcbadd1.tar.gz dotfiles-3afffe980aba1a6f4734692d1bc82f077bcbadd1.zip |
Add git configuration
-rw-r--r-- | git/.gitconfig | 18 | ||||
-rwxr-xr-x | install.sh | 6 |
2 files changed, 24 insertions, 0 deletions
diff --git a/git/.gitconfig b/git/.gitconfig new file mode 100644 index 0000000..ea6c0eb --- /dev/null +++ b/git/.gitconfig @@ -0,0 +1,18 @@ +[user] + name = Yann Herklotz + email = git@yannherklotz.com + signingkey = CA654D3756F79496 + +[advice] + detachedHead = false + +[sendemail] + from = Yann Herklotz <git@yannherklotz.com> + smtpuser = + smtpserver = "/usr/local/bin/msmtp" + smtpencryption = tls + chainreplyto = false + confirm = auto + +[commit] + gpgsign = true @@ -68,6 +68,7 @@ for i in "$@"; do tmux) TMUX_INST=1; NOT_ALL=1;; zathura) ZATHURA=1; NOT_ALL=1;; zsh) ZSH=1; NOT_ALL=1;; + git) GIT=1; NOT_ALL=1;; *) print_help @@ -76,6 +77,11 @@ for i in "$@"; do esac done +if [[ ! -z $GIT ]] || [[ -z $NOT_ALL ]]; then + echo "Installing git config..." + ln_configs git/.gitconfig ~/.gitconfig +fi + if [[ ! -z $EMACS ]] || [[ -z $NOT_ALL ]]; then echo "Installing emacs config..." mk ~/.emacs.d |