mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2025-11-05 01:12:42 +01:00
14 lines
326 B
Makefile
14 lines
326 B
Makefile
install: dotfiles git-hooks
|
|
|
|
# Install dotfiles in users home directory
|
|
dotfiles:
|
|
@if [ -d dotfiles ]; then \
|
|
cp -r ./dotfiles/. $HOME \
|
|
rm -rf dotfiles \
|
|
else \
|
|
echo "Dotfiles already installed or folder is missing"; \
|
|
fi
|
|
|
|
# Use tracked git hooks
|
|
git-hooks:
|
|
git config --local core.hooksPath .local/share/git/hooks
|