added setup script

This commit is contained in:
Sven Vogel 2023-12-01 18:32:59 +01:00
parent a0a63cd351
commit 97872a76d4
1 changed files with 20 additions and 0 deletions

20
setup-neovim.sh Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env sh
printf "Continue copying files and removing current for Neovim (y/n)? "
read -r choice
case "$choice" in
y|Y )
echo "removing current neovim config..."
rm -rfv ~/.config/nvim/*
echo "copying files..."
cp -rv * ~/.config/nvim/
;;
n|N )
echo "aborting..."
exit 0
;;
* )
echo "invalid"
exit 1
;;
esac