From 88ed0146d2d76ffc81ac5f840d66b5991350d5d6 Mon Sep 17 00:00:00 2001 From: Roman Date: Sat, 27 Jun 2026 20:38:07 +0200 Subject: [PATCH] refactor struct --- Makefile | 13 +++++++++++-- install-scripts/ghostty-fedora.sh | 2 ++ .../ghostty-ubuntu.sh | 0 .../nvim-latest.sh | 0 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100755 install-scripts/ghostty-fedora.sh rename install-ghostty-ubuntu.sh => install-scripts/ghostty-ubuntu.sh (100%) rename install-nvim-latest.sh => install-scripts/nvim-latest.sh (100%) diff --git a/Makefile b/Makefile index 914cc4e..469a42c 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/install-scripts/ghostty-fedora.sh b/install-scripts/ghostty-fedora.sh new file mode 100755 index 0000000..4e6be0f --- /dev/null +++ b/install-scripts/ghostty-fedora.sh @@ -0,0 +1,2 @@ +sudo dnf copr enable scottames/ghostty +sudo dnf install ghostty diff --git a/install-ghostty-ubuntu.sh b/install-scripts/ghostty-ubuntu.sh similarity index 100% rename from install-ghostty-ubuntu.sh rename to install-scripts/ghostty-ubuntu.sh diff --git a/install-nvim-latest.sh b/install-scripts/nvim-latest.sh similarity index 100% rename from install-nvim-latest.sh rename to install-scripts/nvim-latest.sh