Handle git email
This commit is contained in:
parent
dcaf6f8b17
commit
d92841b3f4
@ -1,6 +1,5 @@
|
||||
[user]
|
||||
name = Marcus Noble
|
||||
email = github@marcusnoble.co.uk
|
||||
|
||||
[core]
|
||||
editor = /usr/bin/vim
|
||||
|
2
Makefile
2
Makefile
@ -47,10 +47,12 @@ upgrade: ## Upgrade all required binaries.
|
||||
|
||||
.PHONY: dotfiles
|
||||
dotfiles: ## Installs the dotfiles.
|
||||
GITEMAIL=$$(git config --get user.email); \
|
||||
for file in $(shell find $(CURDIR) -name ".*" -not -name ".gitignore" -not -name ".git" -not -name ".config" -not -name ".github" -not -name ".*.swp" -not -name ".gnupg"); do \
|
||||
f=$$(basename $$file); \
|
||||
ln -sfn $$file $(HOME)/$$f; \
|
||||
done; \
|
||||
git config --system --add user.email $$GITEMAIL; \
|
||||
mkdir -p $(HOME)/.additional_dotfiles; touch $(HOME)/.additional_dotfiles/credentials; \
|
||||
mkdir -p $(HOME)/.config; \
|
||||
for file in $(shell find $(CURDIR)/.config -type f); do \
|
||||
|
Loading…
Reference in New Issue
Block a user