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