Add profile and zprofile to dotfiles

This commit is contained in:
Evie Litherland-Smith 2023-02-03 09:08:12 +00:00
parent 9cb7cbbef4
commit f8be54b011
3 changed files with 14 additions and 2 deletions

3
.profile Normal file
View file

@ -0,0 +1,3 @@
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"

3
.zprofile Normal file
View file

@ -0,0 +1,3 @@
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"

View file

@ -24,11 +24,15 @@ clean:
for link in $(CONFIG_TARGETS); do rm "$$link"; done for link in $(CONFIG_TARGETS); do rm "$$link"; done
for link in $(FONT_TARGETS); do rm "$$link"; done for link in $(FONT_TARGETS); do rm "$$link"; done
for link in $(ZSH_TARGETS); do rm "$$link"; done for link in $(ZSH_TARGETS); do rm "$$link"; done
rm $(HOME)/.profile
rm $(HOME)/.zprofile
rm $(HOME)/.zshrc
rm $(HOME)/.p10k.zsh
rm $(HOME)/.ssh/config rm $(HOME)/.ssh/config
rm -rf $(PACKER_DIR) rm -rf $(PACKER_DIR)
rm -rf $(POWERLEVEL_DIR) rm -rf $(POWERLEVEL_DIR)
zsh: $(HOME)/.zshrc $(ZSH_DIR) $(ZSH_CUSTOM_DIR) $(POWERLEVEL_DIR) $(HOME)/.p10k.zsh $(ZSH_TARGETS) zsh: $(HOME)/.profile $(HOME)/.zprofile $(HOME)/.zshrc $(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,10 +41,12 @@ nvim: $(PACKER_DIR)
$(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: ohmyzsh/%.zsh $(ZSH_TARGETS): $(ZSH_CUSTOM_DIR)/%.zsh: ohmyzsh/%.zsh
$(HOME)/.profile: .profile
$(HOME)/.zprofile: .zprofile
$(HOME)/.zshrc: zshrc $(HOME)/.zshrc: zshrc
$(HOME)/.p10k.zsh: p10k.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)/.zshrc $(HOME)/.p10k.zsh $(HOME)/.ssh/config: $(CONFIG_TARGETS) $(FONT_TARGETS) $(ZSH_TARGETS) $(HOME)/.profile $(HOME)/.zprofile $(HOME)/.zshrc $(HOME)/.p10k.zsh $(HOME)/.ssh/config:
ln -s $(PWD)/$? $@ ln -s $(PWD)/$? $@
$(PACKER_DIR): $(PACKER_DIR):