Skip to content

Commit

Permalink
Fix uninstall on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
lyphtec committed Aug 14, 2015
1 parent 45e7985 commit 56090cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh

if [[ -e $HOME/.vimrc || -e $HOME/.vim ]]; then
if [[ -e $HOME/.vimrc || -e $HOME/.vim || -e $HOME/.vimfiles ]]; then

# asking for confirmation
echo "I'll delete $HOME/.vim and $HOME/.vimrc\n\
echo "I'll delete $HOME/.vim, $HOME/.vimfiles, and $HOME/.vimrc\n\
Hope you don't have anything important there.\n\n\
Sounds good? (yes/no)"

Expand All @@ -23,6 +23,7 @@ Sounds good? (yes/no)"
# deleting
echo "You entered $CONFIRM. So I'm deleting it."
rm -rf ~/.vim
rm -rf ~/.vimfiles
rm ~/.vimrc
else
echo "vimfiles are already deleted. You're good."
Expand Down

0 comments on commit 56090cc

Please sign in to comment.