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