Support additional dotfiles
This commit is contained in:
parent
567910bdb6
commit
3e41fe0705
@ -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
4
.zshrc
@ -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)"
|
||||
|
3
Makefile
3
Makefile
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user