aboutsummaryrefslogtreecommitdiffstats
path: root/git/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-25 19:36:07 +0200
committerMattias Andrée <maandree@kth.se>2021-06-25 19:36:07 +0200
commit16c47a3969099a22c51fa3e1868b7c16be896e82 (patch)
tree529e416b8f95fca1f7818eb9edeee865783bd2c6 /git/Makefile
parentFix bugs (diff)
downloaddotfiles-16c47a3969099a22c51fa3e1868b7c16be896e82.tar.gz
dotfiles-16c47a3969099a22c51fa3e1868b7c16be896e82.tar.bz2
dotfiles-16c47a3969099a22c51fa3e1868b7c16be896e82.tar.xz
Add git config
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'git/Makefile')
-rw-r--r--git/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/git/Makefile b/git/Makefile
index 253a708..3f9f161 100644
--- a/git/Makefile
+++ b/git/Makefile
@@ -2,11 +2,15 @@
include ../common.mk
install:
+ mkdir -p -- ~/.config/git
+ cat config ../.secrets/git/config > ~/.config/git/config
mkdir -p -- ~/.config/bash/aliases.d
test ! -d ~/.config/bash/aliases.d/git
ln -sf -- ~/.dotfiles/git/bash-aliases ~/.config/bash/aliases.d/git
uninstall:
+ -unlink -- ~/.config/git/config
+ -rmdir -- ~/.config/git
-unlink -- ~/.config/bash/aliases.d/git
-rmdir -- ~/.config/bash/aliases.d