From cae6b7da4c8ce4ae2a0923990e6b198f092dfd0e Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Tue, 13 Jul 2021 19:57:38 +0430 Subject: fix the installation stuck on Ok to remove (#912) --- utils/installer/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'utils') diff --git a/utils/installer/install.sh b/utils/installer/install.sh index 8d87260e..0473bbab 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -182,6 +182,13 @@ installextrapackages() { # Welcome echo 'Installing LunarVim' +if [[ $* == *--overwrite* ]]; then + echo '!!Warning!! -> Removing all nvim related config because of the --overwrite flag' + rm -rf "$HOME/.config/nvim" + rm -rf "$HOME/.cache/nvim" + rm -rf "$HOME/.local/share/nvim/site/pack/packer" +fi + # move old nvim directory if it exists [ -d "$HOME/.config/nvim" ] && moveoldnvim -- cgit v1.2.3