refactor struct

This commit is contained in:
2026-06-27 20:38:07 +02:00
parent 3731c014f7
commit 88ed0146d2
4 changed files with 13 additions and 2 deletions

View File

@@ -1,8 +1,11 @@
# prefer this if stow is available
.PHONY: stow
.PHONY: stow unstow
stow:
stow nvim
unstow:
stow -D nvim
LN := ln -svf
LNDIR := ln -sv
@@ -10,14 +13,20 @@ DOTFILES_DIR := $(shell pwd)
TARGET_DIR := $(HOME)
# if stow is not available, symlink configs instead
.PHONY: link
.PHONY: link unlink
link: nvim
unlink: unnvim
.PHONY: nvim
nvim:
rm -rf $(TARGET_DIR)/.config/nvim
$(LNDIR) $(DOTFILES_DIR)/nvim/.config/nvim $(TARGET_DIR)/.config/nvim
.PHONY: unnvim
unnvim:
rm -rf $(TARGET_DIR)/.config/nvim
.PHONY: git
git:
rm -f $(TARGET_DIR)/.gitconfig

View File

@@ -0,0 +1,2 @@
sudo dnf copr enable scottames/ghostty
sudo dnf install ghostty