From 59b7e1b5c4a9350f377a436d651d5fb886d0d1bb Mon Sep 17 00:00:00 2001 From: steveokard Date: Tue, 21 Jan 2020 15:37:55 -0500 Subject: [PATCH] added test cases for installation --- emacs_doom.zsh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/emacs_doom.zsh b/emacs_doom.zsh index 22722a4..9352132 100644 --- a/emacs_doom.zsh +++ b/emacs_doom.zsh @@ -1,6 +1,17 @@ #!/bin/zsh #This will install Doom for Emacs -git clone https://github.com/hlissner/doom-emacs ~/.emacs.d -#Test for emacs and ripgrep -~/.emacs.d/bin/doom install +if [ -e ~/.emacs.d/spacemacs.mk ] +#cleanup old spacemacs + mv ~/.emacs.d ~/spacemacs.d +else + git clone https://github.com/hlissner/doom-emacs ~/.emacs.d +fi +#Test for ripgrep +if [ -e /usr/bin/rg ] + ~/.emacs.d/bin/doom install +else + echo "Ripgrep not detected, attempting to install!" + sudo apt install ripgrep +fi +