Move ohmyzsh custom config to separate directory
Add p10k config and rule to symlink to standard location
This commit is contained in:
parent
7bca12ae5d
commit
a1073b3278
11
Makefile
11
Makefile
|
@ -8,8 +8,8 @@ CONFIG_ITEMS := $(wildcard config/*)
|
||||||
CONFIG_TARGETS := $(CONFIG_ITEMS:config/%=$(CONFIG_DIR)/%)
|
CONFIG_TARGETS := $(CONFIG_ITEMS:config/%=$(CONFIG_DIR)/%)
|
||||||
FONT_ITEMS := $(wildcard nerdfont_symbols/*)
|
FONT_ITEMS := $(wildcard nerdfont_symbols/*)
|
||||||
FONT_TARGETS := $(FONT_ITEMS:nerdfont_symbols/%=$(FONT_DIR)/%)
|
FONT_TARGETS := $(FONT_ITEMS:nerdfont_symbols/%=$(FONT_DIR)/%)
|
||||||
ZSH_ITEMS := $(wildcard *.zsh)
|
ZSH_ITEMS := $(wildcard ohmyzsh/*.zsh)
|
||||||
ZSH_TARGETS := $(ZSH_ITEMS:%.zsh=$(ZSH_CUSTOM_DIR)/%.zsh)
|
ZSH_TARGETS := $(ZSH_ITEMS:ohmyzsh/%.zsh=$(ZSH_CUSTOM_DIR)/%.zsh)
|
||||||
|
|
||||||
PACKER_REPO := https://github.com/wbthomason/packer.nvim
|
PACKER_REPO := https://github.com/wbthomason/packer.nvim
|
||||||
PACKER_DIR := $(HOME)/.local/share/nvim/site/pack/packer/start/packer.nvim
|
PACKER_DIR := $(HOME)/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||||
|
@ -28,7 +28,7 @@ clean:
|
||||||
rm -rf $(PACKER_DIR)
|
rm -rf $(PACKER_DIR)
|
||||||
rm -rf $(POWERLEVEL_DIR)
|
rm -rf $(POWERLEVEL_DIR)
|
||||||
|
|
||||||
zsh: $(ZSH_DIR) $(ZSH_CUSTOM_DIR) $(POWERLEVEL_DIR) $(ZSH_TARGETS)
|
zsh: $(ZSH_DIR) $(ZSH_CUSTOM_DIR) $(POWERLEVEL_DIR) $(HOME)/.p10k.zsh $(ZSH_TARGETS)
|
||||||
|
|
||||||
ssh: $(HOME)/.ssh/config $(HOME)/.ssh/sockets $(HOME)/.ssh/config.d
|
ssh: $(HOME)/.ssh/config $(HOME)/.ssh/sockets $(HOME)/.ssh/config.d
|
||||||
|
|
||||||
|
@ -37,9 +37,10 @@ nvim:
|
||||||
|
|
||||||
$(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/%
|
$(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/%
|
||||||
$(FONT_TARGETS): $(FONT_DIR)/%: nerdfont_symbols/%
|
$(FONT_TARGETS): $(FONT_DIR)/%: nerdfont_symbols/%
|
||||||
$(ZSH_TARGETS): $(ZSH_CUSTOM_DIR)/%.zsh: %.zsh
|
$(ZSH_TARGETS): $(ZSH_CUSTOM_DIR)/%.zsh: ohmyzsh/%.zsh
|
||||||
|
$(HOME)/.p10k.zsh: p10k.zsh
|
||||||
$(HOME)/.ssh/config: $(HOME)/.ssh/%: ssh-%
|
$(HOME)/.ssh/config: $(HOME)/.ssh/%: ssh-%
|
||||||
$(CONFIG_TARGETS) $(FONT_TARGETS) $(ZSH_TARGETS) $(HOME)/.ssh/config:
|
$(CONFIG_TARGETS) $(FONT_TARGETS) $(ZSH_TARGETS) $(HOME)/.p10k.zsh $(HOME)/.ssh/config:
|
||||||
ln -s $(PWD)/$? $@
|
ln -s $(PWD)/$? $@
|
||||||
|
|
||||||
$(ZSH_DIR):
|
$(ZSH_DIR):
|
||||||
|
|
Loading…
Reference in a new issue