feat(clean): Ask for confirmation
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
clean=""
|
||||||
|
echo "
|
||||||
|
Cleaning the installation will delete all your plugins, as well as file history, undo history, etc
|
||||||
|
"
|
||||||
|
read -p "Do you really want to clean the nvim installation? (y/N) " clean
|
||||||
|
|
||||||
|
if [[ "$clean" == "y" ]]; then
|
||||||
git pull
|
git pull
|
||||||
rm -rf ~/.local/share/nvim*/
|
rm -rf ~/.local/share/nvim*/
|
||||||
rm -rf ~/.local/state/nvim*/
|
rm -rf ~/.local/state/nvim*/
|
||||||
@@ -10,3 +17,6 @@ sudo npm i -g @vue/typescript-plugin
|
|||||||
|
|
||||||
# Re-Install configs to clean out lazy-lock and all other residue
|
# Re-Install configs to clean out lazy-lock and all other residue
|
||||||
./nvim-install.sh
|
./nvim-install.sh
|
||||||
|
else
|
||||||
|
echo "Aborting."
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user