aboutsummaryrefslogtreecommitdiffstats
path: root/git
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--git/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/git/Makefile b/git/Makefile
index 8e57722..b07a06d 100644
--- a/git/Makefile
+++ b/git/Makefile
@@ -4,7 +4,10 @@ install:
mkdir -p -- ~/.config/git
test ! -e ~/.config/git/config || test -L ~/.config/git/config
test ! -e ~/.config/git/config || test -f ~/.config/git/config
- cat config ../.secrets/git/config > .config
+ cp -- config .config
+ if test -f ../.secrets/git/config; then\
+ cat ../.secrets/git/config >> .config;\
+ fi
ln -sf -- ~/.dotfiles/git/.config ~/.config/git/config
mkdir -p -- ~/.config/bash/aliases.d
test ! -d ~/.config/bash/aliases.d/git