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