diff options
author | Mattias Andrée <maandree@kth.se> | 2024-05-06 07:38:20 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-05-06 07:38:20 +0200 |
commit | d7a43337a05b086533430d1a749fd177439ced66 (patch) | |
tree | c9340132c241b5cb630472790762c18fad521d9c /git | |
parent | misc updates (diff) | |
download | dotfiles-d7a43337a05b086533430d1a749fd177439ced66.tar.gz dotfiles-d7a43337a05b086533430d1a749fd177439ced66.tar.bz2 dotfiles-d7a43337a05b086533430d1a749fd177439ced66.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'git')
-rw-r--r-- | git/Makefile | 5 |
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 |