Add nvim installer script
Add clean up for legacy style install
This commit is contained in:
parent
cfca522e76
commit
ee4033af82
12
Makefile
12
Makefile
|
@ -5,7 +5,7 @@ CONFIG_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME), $(HOME)/.config)
|
|||
BIN_DIR := $(HOME)/.local/bin
|
||||
HOMEMANAGER_CONFIG_DIR := $(CONFIG_DIR)/home-manager
|
||||
|
||||
.PHONY: default all clean nixos home legacy
|
||||
.PHONY: default all clean nixos home legacy lclean
|
||||
|
||||
default:
|
||||
[ -e /etc/nixos/ ] && make nixos || make home
|
||||
|
@ -39,6 +39,14 @@ legacy: $(CONFIG_DIR) $(BIN_DIR)
|
|||
fc-list | grep -iE "(fira.*code)*(nerd.*font)" > /dev/null || ./scripts/installers/firacode.sh && fc-cache
|
||||
command -v nvim > /dev/null || ./scripts/installers/nvim.sh
|
||||
[ -e $(CONFIG_DIR)/nvim ] || ln -s $(PWD)/home/tui/config/nvim $(CONFIG_DIR)/
|
||||
command -v starship > /dev/null || ./scripts/installers/starship.sh --yes --bin-dir $(HOME)/.local/bin
|
||||
command -v starship > /dev/null || ./scripts/installers/starship.sh --yes --bin-dir $(BIN_DIR)
|
||||
[ -e $(CONFIG_DIR)/starship.toml ] || ln -s $(PWD)/home/env/config/starship.toml $(CONFIG_DIR)/
|
||||
command -v direnv > /dev/null || bin_path="$(BIN_DIR)" ./scripts/installers/direnv.sh
|
||||
|
||||
lclean: clean
|
||||
[ -e $(HOME)/.fonts/FiraCode ] && rm -rf $(HOME)/.fonts/FiraCode
|
||||
[ -e $(BIN_DIR)/nvim ] && rm $(BIN_DIR)/nvim
|
||||
[ -e $(CONFIG_DIR)/nvim ] && rm $(CONFIG_DIR)/nvim
|
||||
[ -e $(BIN_DIR)/starship ] && rm $(BIN_DIR)/starship
|
||||
[ -e $(CONFIG_DIR)/starship.toml ] && rm $(CONFIG_DIR)/starship.toml
|
||||
[ -e $(BIN_DIR)/direnv ] && rm $(BIN_DIR)/direnv
|
||||
|
|
8
scripts/installers/nvim.sh
Executable file
8
scripts/installers/nvim.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
curl -sSLO https://github.com/neovim/neovim/releases/download/stable/nvim.appimage
|
||||
curl -sSLO https://github.com/neovim/neovim/releases/download/stable/nvim.appimage.sha256sum
|
||||
sha256sum -c nvim.appimage.sha256sum || {
|
||||
rm nvim.appimage nvim.appimage.sha256sum
|
||||
exit 1
|
||||
}
|
||||
chmod a+x nvim.appimage
|
||||
mv nvim.appimage $HOME/.local/bin/nvim
|
Loading…
Reference in a new issue