aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Williams <tgwil@tgwil.net>2024-10-13 13:32:38 -0400
committerTristan Williams <tgwil@tgwil.net>2024-10-13 13:32:38 -0400
commitd0a0ae63de3a5460c7570f3540297950fbd0b692 (patch)
tree4c2cab9ebf91a3fedb8ddedc6ac1a8b54e6032c6
parentGive user options for directories similar to files (diff)
downloaddotfiles.core-d0a0ae63de3a5460c7570f3540297950fbd0b692.tar.gz
dotfiles.core-d0a0ae63de3a5460c7570f3540297950fbd0b692.tar.bz2
dotfiles.core-d0a0ae63de3a5460c7570f3540297950fbd0b692.zip
Add git configuration
-rw-r--r--home/.gitconfig26
-rwxr-xr-xnew-user-setup.sh4
2 files changed, 30 insertions, 0 deletions
diff --git a/home/.gitconfig b/home/.gitconfig
new file mode 100644
index 0000000..17ace36
--- /dev/null
+++ b/home/.gitconfig
@@ -0,0 +1,26 @@
1[user]
2 name = Tristan Williams
3 email = tgwil@tgwil.net
4 username = tgwil
5[include]
6 # .gitconfig.local used for GPG secret only
7 path = ~/.gitconfig.local
8[core]
9 editor = emacsclient
10 autocrlf = input
11[commit]
12 gpgsign = true
13 verbose = true
14[init]
15 defaultBranch = stable
16[merge]
17 conflictstyle = zdiff3
18[diff]
19 algorithm = histogram
20 context = 5
21[log]
22 date = iso
23[gpg]
24 program = gpg2
25[safe]
26 directory = *
diff --git a/new-user-setup.sh b/new-user-setup.sh
index 072404b..e52a8fa 100755
--- a/new-user-setup.sh
+++ b/new-user-setup.sh
@@ -151,6 +151,10 @@ place_file $HOME/dotfiles.core/home/.bash_aliases $HOME/.bash_aliases
151place_directory $HOME/.gnupg/ 151place_directory $HOME/.gnupg/
152place_file $HOME/dotfiles.core/home/.gnupg/gpg-agent.conf $HOME/.gnupg/gpg-agent.conf 152place_file $HOME/dotfiles.core/home/.gnupg/gpg-agent.conf $HOME/.gnupg/gpg-agent.conf
153 153
154# Git configuration
155place_file $HOME/dotfiles.core/home/.gitconfig $HOME/.gitconfig
156echo -e "${WARN}WARNING: ~/.gitconfig.local should be placed manually${ENDCOLOR}"
157
154 158
155######################################################################## 159########################################################################
156## END OF SCRIPT 160## END OF SCRIPT