Fix git overriding local configuration

This commit is contained in:
Przemyslaw Grondek 2023-09-18 18:07:38 +02:00
parent b1efee1649
commit 37368c6300

View File

@ -1,7 +1,23 @@
FILES = .bash_aliases .bashrc .inputrc .profile .vimrc .xsessionrc FILES = .bash_aliases .bashrc .inputrc .profile .vimrc .xsessionrc
CONFIGS = .config/mimeapps.list .config/picom.conf .config/redshift.conf .config/user-dirs.dirs
install: install: install_config
cp -v $(FILES) $(HOME) cp -v $(FILES) $(HOME)
cp -rv bin/* $(HOME)/bin cp -rv bin/* $(HOME)/bin
cp -rv .local $(HOME) cp -rv .local $(HOME)
cp -rv .config $(HOME)
install_config: install_config_git install_config_polybar install_config_other
install_config_git:
ifneq ("$(wildcard $(HOME)/.config/git/config)","")
@echo "Git config found, skipping install"
else
mkdir -p $(HOME)/.config/git
cp .config/git/config $(HOME)/.config/git
endif
install_config_polybar:
cp -rv .config/polybar $(HOME)/.config
install_config_other:
cp -rv $(CONFIGS) $(HOME)/.config