Support additional dotfiles

This commit is contained in:
Marcus Noble 2020-10-03 08:27:31 +01:00
parent 567910bdb6
commit 3e41fe0705
3 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[user]
name = Marcus Noble
email = git@marcusnoble.co.uk
email = github@marcusnoble.co.uk
[core]
editor = /usr/bin/vim

4
.zshrc
View File

@ -2,4 +2,8 @@ for filename in ~/.dotfiles/*; do
source $filename
done
for filename in ~/.additional_dotfiles/*; do
source $filename
done
eval "$(starship init zsh)"

View File

@ -31,7 +31,8 @@ dotfiles: ## Installs the dotfiles.
f=$$(basename $$file); \
ln -sfn $$file $(HOME)/$$f; \
done; \
mkdir -p $(HOME)/.config
mkdir -p $(HOME)/.additional_dotfiles; touch $(HOME)/.additional_dotfiles/credentials; \
mkdir -p $(HOME)/.config; \
for file in $(shell find $(CURDIR)/.config -type f); do \
f=$$(basename $$file); \
ln -sfn $$file $(HOME)/.config/$$f; \