Support additional dotfiles

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

View File

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

4
.zshrc
View File

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

View File

@ -31,7 +31,8 @@ dotfiles: ## Installs the dotfiles.
f=$$(basename $$file); \ f=$$(basename $$file); \
ln -sfn $$file $(HOME)/$$f; \ ln -sfn $$file $(HOME)/$$f; \
done; \ 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 \ for file in $(shell find $(CURDIR)/.config -type f); do \
f=$$(basename $$file); \ f=$$(basename $$file); \
ln -sfn $$file $(HOME)/.config/$$f; \ ln -sfn $$file $(HOME)/.config/$$f; \